roles::buildd_master::qa_buildlogchecks_db_address: bmdb1.debian.org
roles::buildd_master::qa_buildlogchecks_db_port: 5435
+roles::ddtp::db_address: danzi.debian.org
+roles::ddtp::db_port: 5437
+
roles::debconf_wafer::db_address: danzi.debian.org
roles::debconf_wafer::db_port: 5434
# ddtp.debian.org service
#
-class roles::ddtp {
+# @param db_address hostname of the postgres server for this service
+# @param db_port port of the postgres server for this service
+class roles::ddtp (
+ String $db_address,
+ Integer $db_port,
+) {
include apache2
ssl::service { 'ddtp.debian.org':
key => true,
}
onion::service { 'ddtp.debian.org': port => 80, target_address => 'ddtp.debian.org', target_port => 80, direct => true }
+
+ @@postgres::cluster::hba_entry { "ddtp-${::fqdn}":
+ tag => "postgres::cluster::${db_port}::hba::${db_address}",
+ pg_port => $db_port,
+ database => ['ddtp'],
+ user => 'ddtp',
+ address => $base::public_addresses,
+ }
}