- pgsqlms: new resource agent

Resolves: rhbz#1952005
This commit is contained in:
Oyvind Albrigtsen 2021-06-02 13:16:10 +02:00
parent 9e7a0f5670
commit 7c24414a29
2 changed files with 3360 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -45,11 +45,12 @@
Name: resource-agents
Summary: Open Source HA Reusable Cluster Resource Scripts
Version: 4.8.0
Release: 3%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
Release: 4%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
License: GPLv2+ and LGPLv2+
URL: https://github.com/ClusterLabs/resource-agents
Source0: %{upstream_prefix}-%{upstream_version}.tar.gz
Patch0: ha-cloud-support-aws.patch
Patch1: bz1952005-pgsqlms-new-ra.patch
Obsoletes: heartbeat-resources <= %{version}
Provides: heartbeat-resources = %{version}
@ -67,6 +68,9 @@ BuildRequires: python3-devel
BuildRequires: python-devel
%endif
# for pgsqlms
BuildRequires: perl-devel perl-English perl-FindBin
%ifarch x86_64
BuildRequires: ha-cloud-support
%endif
@ -128,6 +132,16 @@ A set of scripts to interface with several services to operate in a
High Availability environment for both Pacemaker and rgmanager
service managers.
%package paf
License: PostgreSQL
Summary: PostgreSQL Automatic Failover (PAF) resource agent
Requires: %{name} = %{version}-%{release}
Requires: perl-interpreter
%description paf
PostgreSQL Automatic Failover (PAF) resource agents allows PostgreSQL
databases to be managed in a cluster environment.
%prep
%if 0%{?suse_version} == 0 && 0%{?fedora} == 0 && 0%{?centos} == 0 && 0%{?rhel} == 0
%{error:Unable to determine the distribution/version. This is generally caused by missing /etc/rpm/macros.dist. Please install the correct build packages or define the required macros manually.}
@ -135,6 +149,8 @@ exit 1
%endif
%autosetup -n %{upstream_prefix}-%{upstream_version} -p1
chmod 755 heartbeat/pgsqlms
%build
if [ ! -f configure ]; then
./autogen.sh
@ -398,6 +414,11 @@ rm -rf %{buildroot}/usr/share/doc/resource-agents
%changelog
* Wed Jun 2 2021 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.8.0-4
- pgsqlms: new resource agent
Resolves: rhbz#1952005
* Mon May 17 2021 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.8.0-3
- Remove redhat-lsb-core dependency (lsb_release)