Use postgres::backup_source for danzi's main pg cluster
authorJulien Cristau <jcristau@debian.org>
Sun, 1 Oct 2017 18:20:15 +0000 (20:20 +0200)
committerJulien Cristau <jcristau@debian.org>
Sun, 1 Oct 2017 18:20:15 +0000 (20:20 +0200)
modules/ferm/manifests/per_host.pp
modules/postgres/manifests/backup_source.pp

index 567e4e6..e052c4a 100644 (file)
@@ -277,25 +277,6 @@ class ferm::per_host {
                                description     => 'Allow postgress access2',
                                rule            => '&SERVICE_RANGE(tcp, 5434, ( 2607:f8f0:614:1::/64 ))'
                        }
-
-                       @ferm::rule { 'dsa-postgres-backup':
-                               description     => 'Allow postgress access',
-                               rule            => '&SERVICE_RANGE(tcp, 5433, ( $HOST_PGBACKUPHOST_V4 ))'
-                       }
-                       @ferm::rule { 'dsa-postgres-backup6':
-                               domain          => 'ip6',
-                               description     => 'Allow postgress access',
-                               rule            => '&SERVICE_RANGE(tcp, 5433, ( $HOST_PGBACKUPHOST_V6 ))'
-                       }
-                       @ferm::rule { 'dsa-postgres2-backup':
-                               description     => 'Allow postgress access',
-                               rule            => '&SERVICE_RANGE(tcp, 5434, ( $HOST_PGBACKUPHOST_V4 ))'
-                       }
-                       @ferm::rule { 'dsa-postgres2-backup6':
-                               domain          => 'ip6',
-                               description     => 'Allow postgress access',
-                               rule            => '&SERVICE_RANGE(tcp, 5434, ( $HOST_PGBACKUPHOST_V6 ))'
-                       }
                }
                seger: {
                        @ferm::rule { 'dsa-postgres-backup':
index 0c9407b..06d2dd3 100644 (file)
@@ -37,6 +37,10 @@ class postgres::backup_source {
                }
        }
        if $::hostname in [danzi] {
+               postgres::backup_cluster { $::hostname:
+                       pg_version => '9.6',
+                       pg_port => 5433,
+               }
                postgres::backup_cluster { "${::hostname}-debconf":
                        pg_version => '9.6',
                        pg_port => 5434,