allow the backup hosts to access the salsa pg again
authorPeter Palfrader <peter@palfrader.org>
Sun, 29 Sep 2019 14:24:44 +0000 (16:24 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 29 Sep 2019 14:24:51 +0000 (16:24 +0200)
modules/salsa/manifests/database.pp

index 24647a3..32a53a7 100644 (file)
@@ -37,14 +37,15 @@ class salsa::database inherits salsa {
                }
        }
 
-       include postgres::backup_source
-
+       ferm::rule::simple { "pgport":
+               description => "check access to pg port",
+               port        => $postgresql::params::port,
+               target      => "pg-${postgresql::params::port}",
+       }
        postgres::backup_cluster { $::hostname:
                pg_version => $postgresql::params::version,
                pg_port => $postgresql::params::port,
                do_role => true,
                do_hba => true,
        }
-
-       include postgres::backup_server::register_backup_clienthost
 }