From f987ae5eb5373f7a45923cba0e4218fdfa887be2 Mon Sep 17 00:00:00 2001 From: Chris Butler Date: Thu, 13 Sep 2018 15:34:29 +0100 Subject: [PATCH] Enable "quiet mode" in ssh connection If ssh is configured to output a banner on connection it will interfere with Barman and cause it to error because the ssh output isn't "clean". Adding the -q flag will stop ssh from outputting any banner on connect. --- manifests/postgres.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/postgres.pp b/manifests/postgres.pp index 7849a07..42f03f4 100644 --- a/manifests/postgres.pp +++ b/manifests/postgres.pp @@ -322,7 +322,7 @@ # Export resources to Barman server @@barman::server { $postgres_server_id: conninfo => "user=${barman_dbuser} dbname=${barman_dbname} host=${server_address} port=${server_port}", - ssh_command => "ssh ${postgres_user}@${server_address}", + ssh_command => "ssh -q ${postgres_user}@${server_address}", tag => "barman-${host_group}", archiver => $archiver, archiver_batch_size => $archiver_batch_size,