Skip to content

Instantly share code, notes, and snippets.

@bixu
Created November 1, 2016 08:22
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 bixu/c909aa09299a345fa14f1247e55f17eb to your computer and use it in GitHub Desktop.
Save bixu/c909aa09299a345fa14f1247e55f17eb to your computer and use it in GitHub Desktop.
Use Habitat to create a Postgres replica
standby_mode = "on"
primary_conninfo_host = "postgres.primary.tld"
primary_conninfo_port = 5432
initdb_superuser_name = "postgres"
initdb_superuser_password = "password"
primary_conninfo_user = "postgres"
primary_conninfo_password = "password"
trigger_file = "/hab/svc/postgresql9.4/data/failover_trigger_file"
initdb_encoding = "en_US.UTF-8"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment