roles::tracker::db_address: danzi.debian.org
roles::tracker::db_port: 5432
+roles::debconf_wafer::db_address: danzi.debian.org
+roles::debconf_wafer::db_port: 5434
+
roles::ftp_master::db_port: 5433
roles::postgresql::ftp_master_dak_replica::db_server: fasolo.debian.org
-class roles::debconf_wafer {
+# debconf's wafer role
+
+# @param db_address hostname of the postgres server for this service
+# @param db_port port of the postgres server for this service
+class roles::debconf_wafer (
+ String $db_address,
+ Integer $db_port,
+) {
include apache2
include apache2::ssl
include apache2::expires
site => 'debconf20.debconf.org',
source => 'puppet:///modules/roles/debconf_wafer/debconf20.debconf.org',
}
+
+ @@postgres::cluster::hba_entry { "debconf-wafer-${::fqdn}":
+ tag => "postgres::cluster::${db_port}::hba::${db_address}",
+ pg_port => $db_port,
+ user => ['debconf18', 'debconf19', 'debconf20', 'wafertest'],
+ database => 'sameuser',
+ address => $base::public_addresses,
+ }
}