Skip to content

Instantly share code, notes, and snippets.

@stympy
Created January 17, 2021 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stympy/bb772939f28fea53c40bbc871636874a to your computer and use it in GitHub Desktop.
Save stympy/bb772939f28fea53c40bbc871636874a to your computer and use it in GitHub Desktop.
consul-template pgbouncer config
# /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
}
; /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