From 69ef588ff9a8f3a4df11c17784c6ad3e0d91359f Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 24 Sep 2019 11:05:15 +0200 Subject: [PATCH] backup bacula from postgresql-manda-01 --- modules/postgres/manifests/backup_source.pp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/postgres/manifests/backup_source.pp b/modules/postgres/manifests/backup_source.pp index 146726ace..d2443a187 100644 --- a/modules/postgres/manifests/backup_source.pp +++ b/modules/postgres/manifests/backup_source.pp @@ -45,8 +45,17 @@ class postgres::backup_source { } } - if $::hostname in [melartin, vittoria, godard, buxtehude, danzi] { + if $::hostname in [postgresql-manda-01] { + postgres::backup_cluster { "${::hostname}-bacula": + pg_version => '11', + pg_port => 5432, + pg_cluster => 'bacula', + } + } + + if $::hostname in [melartin, vittoria, godard, buxtehude, danzi, postgresql-manda-01] { postgres::backup_server::register_backup_clienthost { "backup-clienthost-${::fqdn}}": } } + } -- 2.20.1