{% set postgresql = salt["pillar.get"]("postgresql") %}
{% set postgresql_password = salt["pillar.get"]("postgresql-users:replicator") %}

standby_mode = on

{{ "{{" }} with service "primary.postgresql@{{ pillar.dc }}" }}
primary_conninfo = 'application_name={{ grains["fqdn"] }} host=postgresql.psf.io hostaddr={{ "{{(index . 0).Address}}" }} port={{ "{{(index . 0).Port}}" }} sslmode=verify-full sslrootcert=/etc/ssl/certs/PSF_CA.pem user=replicator password={{ postgresql_password }}'
{{ "{{ end }}" }}

{% set postgresql = salt["pillar.get"]("postgresql") %}
{% set postgresql_password = salt["pillar.get"]("postgresql-users:replicator") %}

standby_mode = on

primary_slotname = '{{ grains["host"] }}'

{{ "{{" }} with service "primary.postgresql@{{ pillar.dc }}" }}
primary_conninfo = 'application_name={{ grains["fqdn"] }} host=postgresql.psf.io hostaddr={{ "{{(index . 0).Address}}" }} port={{ "{{(index . 0).Port}}" }} sslmode=verify-full sslrootcert=/etc/ssl/certs/PSF_CA.pem user=replicator password={{ postgresql_password }}'
{{ "{{ end }}" }}

Set the primary slotname of the standby server
Set the primary slotname of the standby server
