Created
January 17, 2021 20:34
-
-
Save stympy/bb772939f28fea53c40bbc871636874a to your computer and use it in GitHub Desktop.
consul-template pgbouncer config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/consul-template/conf.d/pgbouncer.conf | |
template { | |
source = "/etc/consul-template/templates/pgbouncer.ini.tmpl" | |
destination = "/etc/pgbouncer/pgbouncer.ini" | |
command = "service pgbouncer reload" | |
command_timeout = "60s" | |
backup = true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; /etc/consul-template/templates/pgbouncer.ini.tmpl | |
[databases] | |
; the honeybadger portion of postgres/honeybadger/leader is the patroni cluster name | |
honeybadger = host={{ key "postgres/honeybadger/leader" }} port=5432 dbname=honeybadger | |
; ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment