X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fpostgres%2Fmanifests%2Fbackup_cluster.pp;fp=modules%2Fpostgres%2Fmanifests%2Fbackup_cluster.pp;h=172f33c087ddbf3882f8cff0aede5103e5ee9178;hb=483ee60efd32db8ba0777e569fd72592cfee7bf6;hp=cceb94e650f2afb3299e8ca51ac4c3cea0426768;hpb=530a368c8a8e40d8b115989dcef7bae700099c01;p=mirror%2Fdsa-puppet.git diff --git a/modules/postgres/manifests/backup_cluster.pp b/modules/postgres/manifests/backup_cluster.pp index cceb94e65..172f33c08 100644 --- a/modules/postgres/manifests/backup_cluster.pp +++ b/modules/postgres/manifests/backup_cluster.pp @@ -30,6 +30,8 @@ define postgres::backup_cluster( Boolean $do_role = false, Boolean $do_hba = false, ) { + include postgres::backup_source + $datadir = "/var/lib/postgresql/${pg_version}/${pg_cluster}" file { "${datadir}/.nobackup": content => '' @@ -58,21 +60,6 @@ define postgres::backup_cluster( } } - # Send connections to the port to the pg-backup chain - # there, the register_backup_clienthost class will have - # realized the exported allows from the backup servers. - # - # Any non-matching traffic will fall through and it can - # be allowed elsewhere - # - # this rule is only needed for clusters that we do not manage - # with postgres::cluster. Hopefully these will go away with time - ferm::rule::simple { "dsa-postgres-backup-${pg_port}": - description => 'Check for postgres access from backup host', - port => $pg_port, - target => 'pg-backup', - } - postgres::cluster::hba_entry { "backup-replication::${pg_version}::${pg_cluster}": pg_version => $pg_version, pg_cluster => $pg_cluster,