Skip to content

Commit

Permalink
SSH server can be not on 22/tcp
Browse files Browse the repository at this point in the history
  • Loading branch information
alexclear committed Dec 26, 2015
1 parent 0824306 commit ad48bde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ postgres_confirm_service_restart: yes
postgres_restart_params:
archive_mode: "on"
wal_level: "{{ postgres_wal_level }}"

postgres_host_ssh_port: 22
2 changes: 1 addition & 1 deletion templates/barman.d/template.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
;{{ ansible_managed }}
[{{ postgres_host_name }}]
description = "{{ postgres_host_description }}"
ssh_command = ssh postgres@{{ postgres_host }}
ssh_command = ssh -p {{ postgres_host_ssh_port }} postgres@{{ postgres_host }}
conninfo = host={{ postgres_host }} user=barman
compression = gzip
retention_policy = REDUNDANCY 4

0 comments on commit ad48bde

Please sign in to comment.