repmgr: Add v18 patches, etc.
authorDevrim Gunduz <devrim@gunduz.org>
Mon, 4 Aug 2025 14:38:11 +0000 (09:38 -0500)
committerDevrim Gunduz <devrim@gunduz.org>
Mon, 4 Aug 2025 14:38:11 +0000 (09:38 -0500)
28 files changed:
rpm/redhat/main/non-common/repmgr/EL-10/repmgr-pg18-conf.sample.patch [new symlink]
rpm/redhat/main/non-common/repmgr/EL-10/repmgr-pg18-config-file-location.patch [new symlink]
rpm/redhat/main/non-common/repmgr/EL-10/repmgr-pg18.service [new symlink]
rpm/redhat/main/non-common/repmgr/EL-10/repmgr-pg18.sysconfig [new symlink]
rpm/redhat/main/non-common/repmgr/EL-8/repmgr-pg18-conf.sample.patch [new symlink]
rpm/redhat/main/non-common/repmgr/EL-8/repmgr-pg18-config-file-location.patch [new symlink]
rpm/redhat/main/non-common/repmgr/EL-8/repmgr-pg18.service [new symlink]
rpm/redhat/main/non-common/repmgr/EL-8/repmgr-pg18.sysconfig [new symlink]
rpm/redhat/main/non-common/repmgr/EL-9/repmgr-pg18-conf.sample.patch [new symlink]
rpm/redhat/main/non-common/repmgr/EL-9/repmgr-pg18-config-file-location.patch [new symlink]
rpm/redhat/main/non-common/repmgr/EL-9/repmgr-pg18.service [new symlink]
rpm/redhat/main/non-common/repmgr/EL-9/repmgr-pg18.sysconfig [new symlink]
rpm/redhat/main/non-common/repmgr/F-41/repmgr-pg18-conf.sample.patch [new symlink]
rpm/redhat/main/non-common/repmgr/F-41/repmgr-pg18-config-file-location.patch [new symlink]
rpm/redhat/main/non-common/repmgr/F-41/repmgr-pg18.service [new symlink]
rpm/redhat/main/non-common/repmgr/F-41/repmgr-pg18.sysconfig [new symlink]
rpm/redhat/main/non-common/repmgr/F-42/repmgr-pg18-conf.sample.patch [new symlink]
rpm/redhat/main/non-common/repmgr/F-42/repmgr-pg18-config-file-location.patch [new symlink]
rpm/redhat/main/non-common/repmgr/F-42/repmgr-pg18.service [new symlink]
rpm/redhat/main/non-common/repmgr/F-42/repmgr-pg18.sysconfig [new symlink]
rpm/redhat/main/non-common/repmgr/SLES-15/repmgr-pg18-conf.sample.patch [new symlink]
rpm/redhat/main/non-common/repmgr/SLES-15/repmgr-pg18-config-file-location.patch [new symlink]
rpm/redhat/main/non-common/repmgr/SLES-15/repmgr-pg18.service [new symlink]
rpm/redhat/main/non-common/repmgr/SLES-15/repmgr-pg18.sysconfig [new symlink]
rpm/redhat/main/non-common/repmgr/main/repmgr-pg18-conf.sample.patch [new file with mode: 0644]
rpm/redhat/main/non-common/repmgr/main/repmgr-pg18-config-file-location.patch [new file with mode: 0644]
rpm/redhat/main/non-common/repmgr/main/repmgr-pg18.service [new file with mode: 0644]
rpm/redhat/main/non-common/repmgr/main/repmgr-pg18.sysconfig [new file with mode: 0644]

diff --git a/rpm/redhat/main/non-common/repmgr/EL-10/repmgr-pg18-conf.sample.patch b/rpm/redhat/main/non-common/repmgr/EL-10/repmgr-pg18-conf.sample.patch
new file mode 120000 (symlink)
index 0000000..6164305
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18-conf.sample.patch
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/EL-10/repmgr-pg18-config-file-location.patch b/rpm/redhat/main/non-common/repmgr/EL-10/repmgr-pg18-config-file-location.patch
new file mode 120000 (symlink)
index 0000000..6cee5fc
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18-config-file-location.patch
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/EL-10/repmgr-pg18.service b/rpm/redhat/main/non-common/repmgr/EL-10/repmgr-pg18.service
new file mode 120000 (symlink)
index 0000000..f2f4fcb
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18.service
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/EL-10/repmgr-pg18.sysconfig b/rpm/redhat/main/non-common/repmgr/EL-10/repmgr-pg18.sysconfig
new file mode 120000 (symlink)
index 0000000..81181a3
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18.sysconfig
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/EL-8/repmgr-pg18-conf.sample.patch b/rpm/redhat/main/non-common/repmgr/EL-8/repmgr-pg18-conf.sample.patch
new file mode 120000 (symlink)
index 0000000..6164305
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18-conf.sample.patch
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/EL-8/repmgr-pg18-config-file-location.patch b/rpm/redhat/main/non-common/repmgr/EL-8/repmgr-pg18-config-file-location.patch
new file mode 120000 (symlink)
index 0000000..6cee5fc
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18-config-file-location.patch
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/EL-8/repmgr-pg18.service b/rpm/redhat/main/non-common/repmgr/EL-8/repmgr-pg18.service
new file mode 120000 (symlink)
index 0000000..f2f4fcb
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18.service
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/EL-8/repmgr-pg18.sysconfig b/rpm/redhat/main/non-common/repmgr/EL-8/repmgr-pg18.sysconfig
new file mode 120000 (symlink)
index 0000000..81181a3
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18.sysconfig
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/EL-9/repmgr-pg18-conf.sample.patch b/rpm/redhat/main/non-common/repmgr/EL-9/repmgr-pg18-conf.sample.patch
new file mode 120000 (symlink)
index 0000000..6164305
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18-conf.sample.patch
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/EL-9/repmgr-pg18-config-file-location.patch b/rpm/redhat/main/non-common/repmgr/EL-9/repmgr-pg18-config-file-location.patch
new file mode 120000 (symlink)
index 0000000..6cee5fc
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18-config-file-location.patch
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/EL-9/repmgr-pg18.service b/rpm/redhat/main/non-common/repmgr/EL-9/repmgr-pg18.service
new file mode 120000 (symlink)
index 0000000..f2f4fcb
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18.service
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/EL-9/repmgr-pg18.sysconfig b/rpm/redhat/main/non-common/repmgr/EL-9/repmgr-pg18.sysconfig
new file mode 120000 (symlink)
index 0000000..81181a3
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18.sysconfig
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/F-41/repmgr-pg18-conf.sample.patch b/rpm/redhat/main/non-common/repmgr/F-41/repmgr-pg18-conf.sample.patch
new file mode 120000 (symlink)
index 0000000..6164305
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18-conf.sample.patch
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/F-41/repmgr-pg18-config-file-location.patch b/rpm/redhat/main/non-common/repmgr/F-41/repmgr-pg18-config-file-location.patch
new file mode 120000 (symlink)
index 0000000..6cee5fc
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18-config-file-location.patch
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/F-41/repmgr-pg18.service b/rpm/redhat/main/non-common/repmgr/F-41/repmgr-pg18.service
new file mode 120000 (symlink)
index 0000000..f2f4fcb
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18.service
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/F-41/repmgr-pg18.sysconfig b/rpm/redhat/main/non-common/repmgr/F-41/repmgr-pg18.sysconfig
new file mode 120000 (symlink)
index 0000000..81181a3
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18.sysconfig
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/F-42/repmgr-pg18-conf.sample.patch b/rpm/redhat/main/non-common/repmgr/F-42/repmgr-pg18-conf.sample.patch
new file mode 120000 (symlink)
index 0000000..6164305
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18-conf.sample.patch
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/F-42/repmgr-pg18-config-file-location.patch b/rpm/redhat/main/non-common/repmgr/F-42/repmgr-pg18-config-file-location.patch
new file mode 120000 (symlink)
index 0000000..6cee5fc
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18-config-file-location.patch
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/F-42/repmgr-pg18.service b/rpm/redhat/main/non-common/repmgr/F-42/repmgr-pg18.service
new file mode 120000 (symlink)
index 0000000..f2f4fcb
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18.service
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/F-42/repmgr-pg18.sysconfig b/rpm/redhat/main/non-common/repmgr/F-42/repmgr-pg18.sysconfig
new file mode 120000 (symlink)
index 0000000..81181a3
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18.sysconfig
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/SLES-15/repmgr-pg18-conf.sample.patch b/rpm/redhat/main/non-common/repmgr/SLES-15/repmgr-pg18-conf.sample.patch
new file mode 120000 (symlink)
index 0000000..6164305
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18-conf.sample.patch
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/SLES-15/repmgr-pg18-config-file-location.patch b/rpm/redhat/main/non-common/repmgr/SLES-15/repmgr-pg18-config-file-location.patch
new file mode 120000 (symlink)
index 0000000..6cee5fc
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18-config-file-location.patch
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/SLES-15/repmgr-pg18.service b/rpm/redhat/main/non-common/repmgr/SLES-15/repmgr-pg18.service
new file mode 120000 (symlink)
index 0000000..f2f4fcb
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18.service
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/SLES-15/repmgr-pg18.sysconfig b/rpm/redhat/main/non-common/repmgr/SLES-15/repmgr-pg18.sysconfig
new file mode 120000 (symlink)
index 0000000..81181a3
--- /dev/null
@@ -0,0 +1 @@
+../main/repmgr-pg18.sysconfig
\ No newline at end of file
diff --git a/rpm/redhat/main/non-common/repmgr/main/repmgr-pg18-conf.sample.patch b/rpm/redhat/main/non-common/repmgr/main/repmgr-pg18-conf.sample.patch
new file mode 100644 (file)
index 0000000..eec52cd
--- /dev/null
@@ -0,0 +1,11 @@
+--- repmgr.conf.sample.old     2018-01-18 17:25:14.240760492 +0000
++++ repmgr.conf.sample 2018-01-18 17:25:27.333825591 +0000
+@@ -129,7 +129,7 @@
+ # Environment/command settings
+ #------------------------------------------------------------------------------
+-#pg_bindir=''                         # Path to PostgreSQL binary directory (location
++pg_bindir='/usr/pgsql-18/bin/'                                # Path to PostgreSQL binary directory (location
+                                       # of pg_ctl, pg_basebackup etc.). Only needed
+                                       # if these files are not in the system $PATH.
+                                       #
diff --git a/rpm/redhat/main/non-common/repmgr/main/repmgr-pg18-config-file-location.patch b/rpm/redhat/main/non-common/repmgr/main/repmgr-pg18-config-file-location.patch
new file mode 100644 (file)
index 0000000..cd302bb
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configfile.c
++++ b/configfile.c
+@@ -159,7 +159,7 @@ load_config(const char *config_file, bool verbose, bool terse, t_configuration_o
+       if (config_file_provided == false)
+       {
+               /* packagers: if feasible, patch configuration file path into "package_conf_file" */
+-              char            package_conf_file[MAXPGPATH] = "";
++              char            package_conf_file[MAXPGPATH] = "/etc/repmgr/18/repmgr.conf";
+               char            my_exec_path[MAXPGPATH] = "";
+               char            sysconf_etc_path[MAXPGPATH] = "";
diff --git a/rpm/redhat/main/non-common/repmgr/main/repmgr-pg18.service b/rpm/redhat/main/non-common/repmgr/main/repmgr-pg18.service
new file mode 100644 (file)
index 0000000..4f399a2
--- /dev/null
@@ -0,0 +1,40 @@
+# It's not recommended to modify this file in-place, because it will be
+# overwritten during package upgrades.  If you want to customize, the
+# best way is to create a file "/etc/systemd/system/repmgr-18.service",
+# containing
+#      .include /lib/systemd/system/repmgr-18.service
+#      ...make your changes here...
+# For more info about custom unit files, see
+# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
+
+[Unit]
+Description=A replication manager, and failover management tool for PostgreSQL
+After=syslog.target
+After=network.target
+After=postgresql-18.service
+
+[Service]
+Type=forking
+
+User=postgres
+Group=postgres
+
+# PID file
+PIDFile=/run/repmgr/repmgrd-18.pid
+
+# Location of repmgr conf file:
+Environment=REPMGRDCONF=/etc/repmgr/18/repmgr.conf
+Environment=PIDFILE=/run/repmgr/repmgrd-18.pid
+
+# Where to send early-startup messages from the server 
+# This is normally controlled by the global default set by systemd
+# StandardOutput=syslog
+ExecStart=/usr/pgsql-18/bin/repmgrd -f ${REPMGRDCONF} -p ${PIDFILE} -d --verbose 
+ExecStop=/usr/bin/kill -TERM $MAINPID
+ExecReload=/usr/bin/kill -HUP $MAINPID
+
+# Give a reasonable amount of time for the server to start up/shut down
+TimeoutSec=300
+
+[Install]
+WantedBy=multi-user.target
diff --git a/rpm/redhat/main/non-common/repmgr/main/repmgr-pg18.sysconfig b/rpm/redhat/main/non-common/repmgr/main/repmgr-pg18.sysconfig
new file mode 100644 (file)
index 0000000..2418f00
--- /dev/null
@@ -0,0 +1,24 @@
+# default settings for repmgrd. This file is source by /bin/sh from
+# /etc/init.d/repmgrd
+
+# disable repmgrd by default so it won't get started upon installation
+# valid values: yes/no
+REPMGRD_ENABLED=no
+
+# Repmgr conf file
+REPMGR_CONF=/etc/repmgr/18/repmgr.conf
+
+# Options for repmgrd (required)
+#REPMGRD_OPTS="--verbose -d "
+
+# User to run repmgrd as
+REPMGRD_USER=postgres
+
+# repmgrd binary
+REPMGRD_BIN=/usr/pgsql-18/bin/repmgrd
+
+# pid file
+REPMGRD_PIDFILE=/run/repmgr/repmgrd-18.pid
+
+# log file
+REPMGRD_LOG=/var/log/repmgr/repmgrd-18.log