Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
add log_file
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Krahl committed Mar 4, 2020
1 parent 495e066 commit 2ded2e7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ repmgr_node_id: 1
repmgr_failover: 'automatic'
repmgr_loglevel: 'INFO'
repmgr_logfacility: 'STDERR'
repmgr_log_file: '/var/log/repmgr/repmgr.log'
repmgr_pg_bindir: "/usr/pgsql-{{ postgres_release }}/bin"

# repmgr commands
Expand Down
25 changes: 19 additions & 6 deletions templates/repmgr.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,34 @@
# Replication Manager configuration file for Repmgr 5.x
###########################################################

node_id={{repmgr_node_id}}
#
# Cluster configuration
#
node_id={{repmgr_node_id}}
node_name={{ ansible_hostname }}

#
# Postgres connection
#
conninfo='{{ repmgr_conninfo }}'

#
# Common configuration
#
data_directory='{{postgres_data_directory}}'
config_directory='{{postgres_conf_directory}}'
pg_bindir='{{repmgr_pg_bindir}}'
log_file='{{ repmgr_log_file }}'

config_directory='{{postgres_conf_directory}}'

#
# Logging
#
log_level='{{repmgr_loglevel}}'
log_facility='{{repmgr_logfacility}}'

pg_bindir='{{repmgr_pg_bindir}}'

#
# Failover
#
failover='{{repmgr_failover}}'

promote_command='{{ repmgr_promote_command }}'
follow_command='{{ repmgr_follow_command }}'

0 comments on commit 2ded2e7

Please sign in to comment.