roles::debsources::db_address: bmdb1.debian.org
roles::debsources::db_port: 5440
+roles::ftp_master::db_port: 5433
+
roles::postgresql::ftp_master_dak_replica::db_server: fasolo.debian.org
roles::postgresql::ftp_master_dak_replica::db_port: 5433
roles::postgresql::ftp_master_dak_replica::db_role: repuser
-class roles::ftp_master {
+# ftpmaster role
+#
+# @param db_port port of the database cluster for ftp-master's dak
+class roles::ftp_master (
+ Integer $db_port,
+)
+{
include roles::dakmaster
include roles::signing
include apache2
chain => 'ssh',
saddr => $base::public_addresses,
}
+
+ postgres::cluster::hba_entry { 'dak-guest':
+ pg_port => $db_port,
+ database => 'projectb',
+ user => 'guest',
+ address => '127.0.0.1',
+ method => 'trust',
+ }
+
}