]> git.immae.eu Git - github/fretlink/ansible-postgresql-role.git/blobdiff - templates/postgresql.10.conf.j2
Allow to set options for barman connectivity
[github/fretlink/ansible-postgresql-role.git] / templates / postgresql.10.conf.j2
index 588020f572aa8947af9bf861ba685883312aba24..b07b22b4ba2a78b4e9db4c8422fa74fbc289eb9b 100644 (file)
@@ -228,7 +228,7 @@ wal_log_hints = on                  # also do full page writes of non-critical updates
 
 {% if postgres_archive_enabled %}
 archive_mode = on
-archive_command = 'rsync -a %p barman@{{ postgres_barman_server }}:/var/lib/barman/{{ barman_directory }}/incoming/%f'
+archive_command = 'rsync -a %p {{ postgres_barman_remote_user }}@{{ postgres_barman_server }}:/var/lib/barman/{{ barman_directory }}/incoming/%f'
 {% else %}
 archive_mode = off
 archive_command = ''