2021-01-22 06:16:57 +00:00
|
|
|
%global numcomm @numcomm@
|
|
|
|
%global alphatag @alphatag@
|
|
|
|
%global dirty @dirty@
|
|
|
|
|
2018-04-13 23:55:34 +00:00
|
|
|
%define debug_package %{nil}
|
2018-07-11 06:14:21 +00:00
|
|
|
%define anviluser admin
|
|
|
|
%define anvilgroup admin
|
2021-01-22 06:16:57 +00:00
|
|
|
|
2018-04-13 23:55:34 +00:00
|
|
|
Name: anvil
|
2021-01-22 06:16:57 +00:00
|
|
|
Version: @version@
|
|
|
|
Release: 1%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
|
2018-04-13 23:55:34 +00:00
|
|
|
Summary: Alteeve Anvil! complete package.
|
|
|
|
|
|
|
|
License: GPLv2+
|
2021-01-22 05:37:30 +00:00
|
|
|
URL: https://github.com/ClusterLabs/anvil
|
2021-01-22 06:16:57 +00:00
|
|
|
Source0: %{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}.tar.gz
|
2018-04-13 23:55:34 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-01-22 06:16:57 +00:00
|
|
|
# required to detect paths to:
|
|
|
|
# systemd unit files
|
2021-02-17 12:26:34 +00:00
|
|
|
BuildRequires: systemd autoconf automake
|
2021-01-22 06:16:57 +00:00
|
|
|
# fence-agents binaries
|
|
|
|
BuildRequires: fence-agents-common
|
|
|
|
# OCFROOT
|
|
|
|
BuildRequires: resource-agents
|
2018-04-13 23:55:34 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package generates the anvil-core, anvil-striker, anvil-node and anvil-dr
|
|
|
|
RPM's. The 'core' RPM is common to all machines in an Anvil! cluster, with the
|
|
|
|
other three used for each machine, given its roll.
|
|
|
|
|
|
|
|
WARNING: This is an alpha-stage project. Many features are missing and this
|
|
|
|
should not be used for anything other than development purposes! The
|
|
|
|
first stable release will be 3.1. Anything 3.0 is UNSTABLE.
|
|
|
|
|
|
|
|
%package core
|
|
|
|
Summary: Alteeve's Anvil! Core package
|
|
|
|
Requires: bash-completion
|
2020-07-28 04:59:02 +00:00
|
|
|
Requires: binutils
|
2019-12-04 05:02:19 +00:00
|
|
|
Requires: chrony
|
2020-08-28 06:32:27 +00:00
|
|
|
Requires: cyrus-sasl
|
|
|
|
Requires: cyrus-sasl-gssapi
|
|
|
|
Requires: cyrus-sasl-lib
|
|
|
|
Requires: cyrus-sasl-md5
|
|
|
|
Requires: cyrus-sasl-plain
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: bind-utils
|
2018-07-26 01:02:48 +00:00
|
|
|
Requires: dmidecode
|
2018-10-23 16:55:19 +00:00
|
|
|
Requires: dnf-utils
|
2019-03-12 06:27:31 +00:00
|
|
|
Requires: expect
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: fence-agents-all
|
|
|
|
Requires: fence-agents-virsh
|
|
|
|
Requires: firewalld
|
2020-09-15 05:18:36 +00:00
|
|
|
Requires: freeipmi
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: gpm
|
2018-10-12 07:28:42 +00:00
|
|
|
Requires: hdparm
|
2018-09-10 06:17:02 +00:00
|
|
|
Requires: htop
|
2019-01-17 21:02:57 +00:00
|
|
|
Requires: iproute
|
2020-11-17 06:48:45 +00:00
|
|
|
Requires: kernel-core
|
|
|
|
Requires: kernel-devel
|
|
|
|
Requires: kernel-headers
|
2018-10-12 07:28:42 +00:00
|
|
|
Requires: lsscsi
|
2019-12-23 05:54:09 +00:00
|
|
|
Requires: mailx
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: mlocate
|
2020-10-23 05:28:21 +00:00
|
|
|
Requires: net-snmp-utils
|
2020-10-08 05:38:41 +00:00
|
|
|
Requires: nvme-cli
|
2019-03-22 04:57:53 +00:00
|
|
|
Requires: perl-Capture-Tiny
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: perl-Data-Dumper
|
2020-05-28 02:39:00 +00:00
|
|
|
Requires: perl-Data-Validate-Domain
|
2020-07-07 05:18:38 +00:00
|
|
|
Requires: perl-Data-Validate-IP
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: perl-DBD-Pg
|
2018-05-15 21:45:52 +00:00
|
|
|
Requires: perl-DBI
|
2020-05-03 03:05:58 +00:00
|
|
|
Requires: perl-Data-Validate-Domain
|
2018-05-15 21:45:52 +00:00
|
|
|
Requires: perl-Digest-SHA
|
2019-02-12 09:12:45 +00:00
|
|
|
Requires: perl-File-MimeInfo
|
2021-03-14 04:15:55 +00:00
|
|
|
Requires: perl-CGI
|
2018-08-29 23:52:05 +00:00
|
|
|
Requires: perl-HTML-FromText
|
|
|
|
Requires: perl-HTML-Strip
|
2019-03-22 04:57:53 +00:00
|
|
|
Requires: perl-IO-Tty
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: perl-JSON
|
|
|
|
Requires: perl-Log-Journald
|
2020-01-01 06:43:52 +00:00
|
|
|
Requires: perl-Mail-RFC822-Address
|
2020-06-18 22:46:04 +00:00
|
|
|
Requires: perl-Net-Domain-TLD
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: perl-Net-SSH2
|
2018-10-31 05:42:24 +00:00
|
|
|
Requires: perl-Net-Netmask
|
2019-03-22 04:57:53 +00:00
|
|
|
Requires: perl-Net-OpenSSH
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: perl-NetAddr-IP
|
2018-08-15 07:01:13 +00:00
|
|
|
Requires: perl-Proc-Simple
|
2018-07-25 06:34:47 +00:00
|
|
|
Requires: perl-Sys-Syslog
|
2020-11-17 06:48:45 +00:00
|
|
|
Requires: perl-Sys-Virt
|
2018-10-29 23:50:43 +00:00
|
|
|
Requires: perl-Text-Diff
|
2018-04-23 02:16:10 +00:00
|
|
|
Requires: perl-Time-HiRes
|
2018-09-23 20:16:08 +00:00
|
|
|
Requires: perl-UUID-Tiny
|
2020-07-12 03:26:19 +00:00
|
|
|
Requires: perl-XML-LibXML
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: perl-XML-Simple
|
2018-12-18 23:20:49 +00:00
|
|
|
Requires: postfix
|
2018-07-13 06:24:40 +00:00
|
|
|
Requires: postgresql-contrib
|
|
|
|
Requires: postgresql-plperl
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: rsync
|
2020-09-04 02:52:38 +00:00
|
|
|
Requires: screen
|
2020-10-08 05:38:41 +00:00
|
|
|
Requires: smartmontools
|
2019-07-13 08:16:03 +00:00
|
|
|
Requires: syslinux
|
2021-02-03 19:34:08 +00:00
|
|
|
Requires: tar
|
2019-06-24 21:54:52 +00:00
|
|
|
Requires: tmux
|
2020-11-26 00:06:21 +00:00
|
|
|
Requires: unzip
|
2020-07-18 02:49:25 +00:00
|
|
|
Requires: usbutils
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: vim
|
2019-03-15 06:40:44 +00:00
|
|
|
Requires: wget
|
2018-04-13 23:55:34 +00:00
|
|
|
# iptables-services conflicts with firewalld
|
|
|
|
Conflicts: iptables-services
|
|
|
|
# We handle interface naming
|
|
|
|
Conflicts: biosdevname
|
|
|
|
|
|
|
|
%description core
|
|
|
|
Common base libraries required for the Anvil! system.
|
|
|
|
|
|
|
|
|
|
|
|
%package striker
|
|
|
|
Summary: Alteeve's Anvil! Striker dashboard package
|
2020-11-26 00:06:21 +00:00
|
|
|
Requires: anvil-core == %{version}-%{release}
|
2021-07-28 22:46:18 +00:00
|
|
|
Requires: augeas
|
2020-01-24 02:45:27 +00:00
|
|
|
Requires: bpg-dejavu-sans-fonts
|
2018-10-10 23:43:23 +00:00
|
|
|
Requires: createrepo
|
2020-01-24 02:45:27 +00:00
|
|
|
Requires: dejavu-fonts-common
|
|
|
|
Requires: dejavu-sans-fonts
|
|
|
|
Requires: dejavu-sans-mono-fonts
|
|
|
|
Requires: dejavu-serif-fonts
|
2019-01-06 01:57:44 +00:00
|
|
|
Requires: dhcp-server
|
2018-10-10 23:43:23 +00:00
|
|
|
Requires: firefox
|
2019-09-11 03:11:25 +00:00
|
|
|
Requires: gcc
|
2019-01-17 21:02:57 +00:00
|
|
|
Requires: gdm
|
* Got the node/dr host initialization form to the point where it can test access and decide if it should show the Red Hat account form. Decided that for M3, node/dr host setup will now be a four-stage process; initial install (over PXE), initialization (install the proper anvil-{node,dr} RPM and connect to the database), setup/map the network, and then add to an Anvil! pair.
* Updated striker to no longer try to SSH to a remote machine. To enable this, we'd have to give apache a shell and an SSH key, which is dumb and dangerous when considered.
* Created tools/striker-get-peer-data which is meant to be invoked as the 'admin' user (via a setuid c-wrapper). It collects basic data about a target machine and reports what it finds on STDOUT. It gets the password for the target via the database.
* Updated anvil-daemon to check/create/update setuid c-wrapper(s), which for now is limited to call_striker-initialize-host.
* Created Anvil/Tools/Striker.pm to store Striker web-specific methods, including get_peer_data() which calls tools/striker-initialize-host via the setuid admin call_striker-initialize-host c-wrapper.
* In order to allow striker via apache to read a peer's anvil.version, which it can no longer do over SSH, any connection to a peer where the anvil.version is read is cached as /etc/anvil/anvil.<peer>.version. When Get->anvil_version is called as 'apache', this file is read instead.
* Updated Database->resync_databases() and ->_find_behind_databases() to ignore the 'states' table.
* Created tools/striker-initialize-host which will be called as a job to initialize a node/dr host.
Signed-off-by: Digimer <digimer@alteeve.ca>
2019-09-16 04:17:02 +00:00
|
|
|
Requires: gnome-terminal
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: httpd
|
|
|
|
Requires: nmap
|
2018-07-13 06:24:40 +00:00
|
|
|
Requires: postgresql-server
|
2018-10-10 23:43:23 +00:00
|
|
|
Requires: syslinux
|
2018-11-02 06:06:04 +00:00
|
|
|
Requires: syslinux-nonlinux
|
2018-10-10 23:43:23 +00:00
|
|
|
Requires: tftp-server
|
2018-07-11 06:14:21 +00:00
|
|
|
Requires: virt-manager
|
2018-07-25 06:34:47 +00:00
|
|
|
|
2018-07-11 06:14:21 +00:00
|
|
|
|
2018-04-13 23:55:34 +00:00
|
|
|
# A Striker dashboard is not allowed to host servers or be a migration target.
|
|
|
|
# So the node and dr packages can not be installed.
|
|
|
|
Conflicts: anvil-node
|
|
|
|
Conflicts: anvil-dr
|
|
|
|
%description striker
|
|
|
|
Web interface of the Striker dashboard for Alteeve Anvil! systems
|
|
|
|
|
2018-07-25 06:34:47 +00:00
|
|
|
NOTE: This installs and enables Gnome desktop.
|
2018-04-13 23:55:34 +00:00
|
|
|
|
2018-07-13 01:16:27 +00:00
|
|
|
%package node
|
2018-04-13 23:55:34 +00:00
|
|
|
Summary: Alteeve's Anvil! node package
|
2020-11-26 00:06:21 +00:00
|
|
|
Requires: anvil-core == %{version}-%{release}
|
2019-01-17 21:02:57 +00:00
|
|
|
Requires: drbd90-utils
|
2021-06-27 05:36:36 +00:00
|
|
|
Requires: kmod-drbd
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: libvirt
|
|
|
|
Requires: libvirt-daemon
|
|
|
|
Requires: libvirt-daemon-driver-qemu
|
|
|
|
Requires: libvirt-daemon-kvm
|
|
|
|
Requires: libvirt-docs
|
2021-09-03 20:13:08 +00:00
|
|
|
Requires: netpbm-progs
|
2018-07-13 01:16:27 +00:00
|
|
|
Requires: pacemaker
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: pcs
|
2021-09-03 20:11:08 +00:00
|
|
|
Requires: python3-websockify
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: qemu-kvm
|
2018-07-25 06:34:47 +00:00
|
|
|
Requires: qemu-kvm-core
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: virt-install
|
2020-08-15 03:16:34 +00:00
|
|
|
Requires: virt-top
|
2018-04-13 23:55:34 +00:00
|
|
|
# A node is allowed to host servers and be a live migration target. It is not
|
|
|
|
# allowed to host a database or be a DR host.
|
2019-01-17 21:02:57 +00:00
|
|
|
Conflicts: anvil-striker
|
|
|
|
Conflicts: anvil-dr
|
2018-04-13 23:55:34 +00:00
|
|
|
|
|
|
|
%description node
|
|
|
|
|
|
|
|
Provides support for active node in an Anvil! pair.
|
|
|
|
|
|
|
|
NOTE: On RHEL proper, this requires the node had the "High-Availability
|
|
|
|
Add-on".
|
|
|
|
|
|
|
|
NOTE: LINBIT customers must have access to the LINBIT repositories configured.
|
|
|
|
|
|
|
|
%package dr
|
|
|
|
Summary: Alteeve's Anvil! DR host package
|
2020-11-26 00:06:21 +00:00
|
|
|
Requires: anvil-core == %{version}-%{release}
|
2019-01-17 21:02:57 +00:00
|
|
|
Requires: drbd90-utils
|
2021-06-27 05:36:36 +00:00
|
|
|
Requires: kmod-drbd
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: libvirt
|
|
|
|
Requires: libvirt-daemon
|
|
|
|
Requires: libvirt-daemon-driver-qemu
|
|
|
|
Requires: libvirt-daemon-kvm
|
|
|
|
Requires: libvirt-docs
|
2021-09-03 20:13:08 +00:00
|
|
|
Requires: netpbm-progs
|
2021-09-03 20:11:08 +00:00
|
|
|
Requires: python3-websockify
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: qemu-kvm
|
2018-07-25 06:34:47 +00:00
|
|
|
Requires: qemu-kvm-core
|
2018-04-13 23:55:34 +00:00
|
|
|
Requires: virt-install
|
2020-08-15 03:16:34 +00:00
|
|
|
Requires: virt-top
|
2018-04-13 23:55:34 +00:00
|
|
|
# A DR host is not allowed to be a live-migration target or host a database.
|
|
|
|
Conflicts: anvil-striker
|
|
|
|
Conflicts: anvil-node
|
|
|
|
|
|
|
|
%description dr
|
|
|
|
|
|
|
|
Provides support for asynchronous disaster recovery hosts in an Anvil! cluster.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-01-22 06:16:57 +00:00
|
|
|
%autosetup -n %{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}
|
2018-04-13 23:55:34 +00:00
|
|
|
|
|
|
|
%build
|
2021-01-22 06:16:57 +00:00
|
|
|
./autogen.sh
|
|
|
|
%{configure}
|
|
|
|
make %{_smp_mflags}
|
2018-04-13 23:55:34 +00:00
|
|
|
|
|
|
|
%install
|
2021-01-22 06:16:57 +00:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
make install DESTDIR=%{buildroot}
|
2018-04-13 23:55:34 +00:00
|
|
|
|
2018-07-13 01:16:27 +00:00
|
|
|
%pre core
|
2018-08-30 03:09:52 +00:00
|
|
|
if [ ! -d /usr/share/anvil ];
|
|
|
|
then
|
|
|
|
mkdir /usr/share/anvil
|
|
|
|
fi
|
2018-07-11 06:14:21 +00:00
|
|
|
getent group %{anvilgroup} >/dev/null || groupadd -r %{anvilgroup}
|
|
|
|
getent passwd %{anviluser} >/dev/null || useradd --create-home \
|
|
|
|
--gid %{anvilgroup} --comment "Anvil! user account" %{anviluser}
|
|
|
|
|
2018-07-13 01:16:27 +00:00
|
|
|
%post core
|
2018-07-11 06:14:21 +00:00
|
|
|
# TODO: Remove this!! This is only for use during development, all SELinux
|
|
|
|
# issues must be resolved before final release!
|
2018-07-13 01:16:27 +00:00
|
|
|
echo "WARNING: Setting SELinux to 'permissive' during development."
|
2018-07-11 06:14:21 +00:00
|
|
|
sed -i.anvil 's/SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config
|
2018-07-13 01:16:27 +00:00
|
|
|
setenforce 0
|
2018-09-10 06:17:02 +00:00
|
|
|
# Enable and start the anvil-daemon
|
2019-11-08 19:49:49 +00:00
|
|
|
### TODO: check it if was disabled (if it existed before) and, if so, leave it disabled.
|
2019-12-04 05:02:19 +00:00
|
|
|
systemctl enable chronyd.service
|
|
|
|
systemctl start chronyd.service
|
2018-09-10 06:17:02 +00:00
|
|
|
systemctl enable anvil-daemon.service
|
2020-01-09 06:52:04 +00:00
|
|
|
systemctl restart anvil-daemon.service
|
2018-09-10 06:17:02 +00:00
|
|
|
|
2018-04-13 23:55:34 +00:00
|
|
|
|
|
|
|
%post striker
|
2019-02-06 07:36:19 +00:00
|
|
|
### NOTE: PostgreSQL is initialized and enabled by striker-prep-database later.
|
2018-07-13 01:16:27 +00:00
|
|
|
echo "Enabling and starting apache."
|
2018-04-13 23:55:34 +00:00
|
|
|
systemctl enable httpd.service
|
|
|
|
systemctl start httpd.service
|
2018-07-13 01:16:27 +00:00
|
|
|
restorecon -rv /%{_localstatedir}/www
|
2018-07-25 06:34:47 +00:00
|
|
|
if ! $(ls -l /etc/systemd/system/default.target | grep -q graphical);
|
|
|
|
then
|
|
|
|
echo "Seting graphical interface as default on boot."
|
|
|
|
systemctl set-default graphical.target
|
|
|
|
systemctl enable gdm.service
|
|
|
|
fi
|
|
|
|
|
2018-07-13 01:16:27 +00:00
|
|
|
echo "Preparing the database"
|
2019-02-06 07:36:19 +00:00
|
|
|
striker-prep-database
|
2018-07-25 06:34:47 +00:00
|
|
|
anvil-update-states
|
2018-07-13 01:16:27 +00:00
|
|
|
|
2019-11-06 16:26:21 +00:00
|
|
|
# Touch the system type file.
|
|
|
|
echo "Touching the system type file"
|
|
|
|
if [ -e '/etc/anvil/type.node' ]
|
|
|
|
then
|
|
|
|
rm -f /etc/anvil/type.node
|
|
|
|
elif [ -e '/etc/anvil/type.dr' ]
|
|
|
|
then
|
|
|
|
rm -f /etc/anvil/type.dr
|
|
|
|
fi
|
2020-06-10 22:26:50 +00:00
|
|
|
touch /etc/anvil/type.striker
|
2019-11-06 16:26:21 +00:00
|
|
|
|
|
|
|
|
2018-12-18 23:20:49 +00:00
|
|
|
### TODO: I don't think we need this anymore
|
2018-04-30 15:43:30 +00:00
|
|
|
# Open access for Striker. The database will be opened after initial setup.
|
2018-07-13 01:16:27 +00:00
|
|
|
echo "Opening the web and postgresql ports."
|
2021-02-11 12:52:32 +00:00
|
|
|
systemctl enable firewalld
|
|
|
|
systemctl start firewalld
|
2018-07-25 06:34:47 +00:00
|
|
|
firewall-cmd --add-service=http
|
|
|
|
firewall-cmd --add-service=http --permanent
|
|
|
|
firewall-cmd --add-service=https
|
|
|
|
firewall-cmd --add-service=https --permanent
|
|
|
|
firewall-cmd --add-service=postgresql
|
|
|
|
firewall-cmd --add-service=postgresql --permanent
|
2018-04-13 23:55:34 +00:00
|
|
|
|
2019-07-13 08:16:03 +00:00
|
|
|
%pre node
|
|
|
|
|
2019-11-06 16:26:21 +00:00
|
|
|
|
|
|
|
%post node
|
|
|
|
# Touch the system type file.
|
|
|
|
echo "Touching the system type file"
|
2020-06-10 22:26:50 +00:00
|
|
|
if [ -e '/etc/anvil/type.striker' ]
|
2019-11-06 16:26:21 +00:00
|
|
|
then
|
2020-06-10 22:26:50 +00:00
|
|
|
rm -f /etc/anvil/type.striker
|
2019-11-06 16:26:21 +00:00
|
|
|
elif [ -e '/etc/anvil/type.dr' ]
|
|
|
|
then
|
|
|
|
rm -f /etc/anvil/type.dr
|
|
|
|
fi
|
|
|
|
touch /etc/anvil/type.node
|
|
|
|
|
|
|
|
|
|
|
|
%pre dr
|
|
|
|
|
|
|
|
|
|
|
|
%post dr
|
|
|
|
# Touch the system type file.
|
|
|
|
echo "Touching the system type file"
|
2020-06-10 22:26:50 +00:00
|
|
|
if [ -e '/etc/anvil/type.striker' ]
|
2019-11-06 16:26:21 +00:00
|
|
|
then
|
2020-06-10 22:26:50 +00:00
|
|
|
rm -f /etc/anvil/type.striker
|
2019-11-06 16:26:21 +00:00
|
|
|
elif [ -e '/etc/anvil/type.node' ]
|
|
|
|
then
|
|
|
|
rm -f /etc/anvil/type.node
|
|
|
|
fi
|
|
|
|
touch /etc/anvil/type.dr
|
|
|
|
|
2018-08-30 06:24:25 +00:00
|
|
|
### Remove stuff - Disabled for now, messes things up during upgrades
|
2018-07-13 01:16:27 +00:00
|
|
|
%postun core
|
2018-08-30 06:24:25 +00:00
|
|
|
## This is breaking on upgrades - (note: switch back to single percent sign
|
|
|
|
## when re-enabling)
|
|
|
|
#getent passwd %%{anviluser} >/dev/null && userdel %%{anviluser}
|
|
|
|
#getent group %%{anvilgroup} >/dev/null && groupdel %%{anvilgroup}
|
|
|
|
# echo "NOTE: Re-enabling SELinux."
|
|
|
|
# sed -i.anvil 's/SELINUX=permissive/SELINUX=enforcing/' /etc/selinux/config
|
|
|
|
# setenforce 1
|
2018-07-13 01:16:27 +00:00
|
|
|
|
|
|
|
%postun striker
|
2018-08-14 07:45:36 +00:00
|
|
|
### TODO: Stopping postgres breaks the Anvil! during OS updates. Need to find a
|
|
|
|
### way to run this only during uninstalls, and not during updates.
|
2018-07-13 01:16:27 +00:00
|
|
|
### TODO: This breaks the repos
|
2018-08-14 07:45:36 +00:00
|
|
|
# rm -rf /usr/share/anvil
|
|
|
|
# echo "Closing the postgresql ports."
|
2018-07-13 01:16:27 +00:00
|
|
|
#firewall-cmd --zone=public --remove-service=http
|
|
|
|
#firewall-cmd --zone=public --remove-service=http --permanent
|
2018-08-14 07:45:36 +00:00
|
|
|
# firewall-cmd --zone=public --remove-service=postgresql
|
|
|
|
# firewall-cmd --zone=public --remove-service=postgresql --permanent
|
|
|
|
# echo "Disabling and stopping postgresql-9.6."
|
2018-07-13 01:16:27 +00:00
|
|
|
# systemctl disable httpd.service
|
|
|
|
# systemctl stop httpd.service
|
2018-08-14 07:45:36 +00:00
|
|
|
# systemctl disable postgresql.service
|
|
|
|
# systemctl stop postgresql.service
|
2018-07-13 01:16:27 +00:00
|
|
|
|
2019-11-06 16:26:21 +00:00
|
|
|
# Remove the system type file.
|
2020-06-10 22:26:50 +00:00
|
|
|
if [ -e '/etc/anvil/type.striker' ]
|
2019-11-06 16:26:21 +00:00
|
|
|
then
|
2020-06-10 22:26:50 +00:00
|
|
|
rm -f /etc/anvil/type.striker
|
2019-11-06 16:26:21 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
%postun node
|
|
|
|
# Remove the system type file.
|
|
|
|
if [ -e '/etc/anvil/type.node' ]
|
|
|
|
then
|
|
|
|
rm -f /etc/anvil/type.node
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun dr
|
|
|
|
# Remove the system type file.
|
|
|
|
if [ -e '/etc/anvil/type.dr' ]
|
|
|
|
then
|
|
|
|
rm -f /etc/anvil/type.dr
|
|
|
|
fi
|
|
|
|
|
2018-07-13 01:16:27 +00:00
|
|
|
|
2018-04-13 23:55:34 +00:00
|
|
|
%files core
|
|
|
|
%doc README.md notes
|
|
|
|
%config(noreplace) %{_sysconfdir}/anvil/anvil.conf
|
|
|
|
%{_usr}/lib/*
|
2021-01-22 06:16:57 +00:00
|
|
|
%config(noreplace) %{_datadir}/anvil/anvil.sql
|
2021-03-12 05:56:41 +00:00
|
|
|
%{_datadir}/anvil/firewall.txt
|
|
|
|
%{_datadir}/anvil/words.xml
|
2018-04-13 23:55:34 +00:00
|
|
|
%{_sbindir}/*
|
|
|
|
%{_sysconfdir}/anvil/anvil.version
|
|
|
|
%{_datadir}/perl5/*
|
2021-01-22 06:16:57 +00:00
|
|
|
%{_mandir}/*
|
2018-04-13 23:55:34 +00:00
|
|
|
|
|
|
|
%files striker
|
2021-01-22 06:16:57 +00:00
|
|
|
%{_localstatedir}/www/*/*
|
2021-03-12 05:56:41 +00:00
|
|
|
%{_datadir}/anvil/striker-auto-initialize-all.example
|
2018-04-13 23:55:34 +00:00
|
|
|
%ghost %{_sysconfdir}/anvil/snmp-vendors.txt
|
|
|
|
|
|
|
|
%files node
|
2019-09-23 16:52:04 +00:00
|
|
|
%{_usr}/lib/ocf/resource.d/alteeve/server
|
2018-04-13 23:55:34 +00:00
|
|
|
|
|
|
|
%files dr
|
|
|
|
#<placeholder for node specific files>
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-01-22 06:16:57 +00:00
|
|
|
* @date@ Autotools generated version <nobody@nowhere.org> - @version@-1-@numcomm@.@alphatag@.@dirty@
|
|
|
|
- Autotools generated version.
|
|
|
|
- These aren't the droids you're looking for.
|