You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.1 KiB

9 years ago
Index: dbutils.c
--- dbutils.c.orig 2018-10-23 05:50:04.000000000 +0200
+++ dbutils.c 2019-02-16 17:06:39.205024000 +0100
@@ -24,6 +24,7 @@
#include <sys/stat.h>
#include <dirent.h>
#include <arpa/inet.h>
9 years ago
+#include <netinet/in.h>
#include "repmgr.h"
#include "dbutils.h"
Index: repmgr.conf.sample
--- repmgr.conf.sample.orig 2018-10-23 05:50:04.000000000 +0200
+++ repmgr.conf.sample 2019-02-16 17:07:58.812181000 +0100
@@ -12,34 +12,10 @@
#
# repmgr and repmgrd require the following items to be explicitly configured.
-
-#node_id= # A unique integer greater than zero
-#node_name='' # An arbitrary (but unique) string; we recommend
- # using the server's hostname or another identifier
- # unambiguously associated with the server to avoid
- # confusion. Avoid choosing names which reflect the
- # node's current role, e.g. "primary" or "standby1",
- # as roles can change and it will be confusing if
- # the current primary is called "standby1".
-
-#conninfo='' # Database connection information as a conninfo string.
- # All servers in the cluster must be able to connect to
- # the local node using this string.
- #
- # For details on conninfo strings, see:
- # https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
- #
- # If repmgrd is in use, consider explicitly setting
- # "connect_timeout" in the conninfo string to determine
- # the length of time which elapses before a network
- # connection attempt is abandoned; for details see:
- # https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNECT-CONNECT-TIMEOUT
-
-#data_directory='' # The node's data directory. This is needed by repmgr
- # when performing operations when the PostgreSQL instance
- # is not running and there's no other way of determining
- # the data directory.
-
+node_id=1
+node_name='node1'
+conninfo='host=node1 user=repmgr dbname=repmgr connect_timeout=2'
+data_directory='@l_prefix@/var/postgresql/db'
# =============================================================================