Skip to content

Commit

Permalink
Configurable usernames for superuser and replication. (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyklyukin committed Sep 7, 2017
1 parent 91cda9c commit 4298933
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions postgres-appliance/configure_spilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ def deep_update(a, b):
{{/USE_WALE}}
authentication:
superuser:
username: postgres
username: {{PGUSER_SUPERUSER}}
password: '{{PGPASSWORD_SUPERUSER}}'
replication:
username: standby
username: {{PGUSER_STANDBY}}
password: '{{PGPASSWORD_STANDBY}}'
{{#CALLBACK_SCRIPT}}
callbacks:
Expand Down Expand Up @@ -266,7 +266,9 @@ def get_placeholders(provider):
placeholders.setdefault('PGROOT', os.path.join(placeholders['PGHOME'], 'pgroot'))
placeholders.setdefault('WALE_TMPDIR', os.path.abspath(os.path.join(placeholders['PGROOT'], '../tmp')))
placeholders.setdefault('PGDATA', os.path.join(placeholders['PGROOT'], 'pgdata'))
placeholders.setdefault('PGUSER_STANDBY', 'standby')
placeholders.setdefault('PGPASSWORD_STANDBY', 'standby')
placeholders.setdefault('PGUSER_SUPERUSER', 'postgres')
placeholders.setdefault('PGPASSWORD_SUPERUSER', 'zalando')
placeholders.setdefault('PGPORT', '5432')
placeholders.setdefault('SCOPE', 'dummy')
Expand Down

0 comments on commit 4298933

Please sign in to comment.