3 # @param db_address hostname of the postgres server for this service
4 # @param db_port port of the postgres server for this service
5 # @param qa_buildlogchecks_db_address hostname of the postgres server for this service
6 # @param qa_buildlogchecks_db_port port of the postgres server for this service
7 class roles::buildd_master (
8 String $qa_buildlogchecks_db_address,
9 Integer $qa_buildlogchecks_db_port,
10 String $db_address = $roles::buildd_master::params::db_address,
11 Integer $db_port = $roles::buildd_master::params::db_port,
12 ) inherits roles::buildd_master::params {
16 ssl::service { 'buildd.debian.org':
17 notify => Exec['service apache2 reload'],
21 ssh::authorized_key_collect { 'buildd-master':
22 target_user => 'wb-buildd',
23 collect_tag => 'buildd_master',
26 exim::vdomain { 'buildd.debian.org':
31 class { 'roles::buildd_master::db_guest_access':
32 database => ['wanna-build', 'wanna-build-test'],
35 @@postgres::cluster::hba_entry { "buildd_master-${::fqdn}":
36 tag => "postgres::cluster::${db_port}::hba::${db_address}",
38 database => ['wanna-build', 'wanna-build-test'],
40 address => $base::public_addresses,
43 # The UDD database is used to display FTBFS bugs on the web interface
44 include roles::udd::db_guest_access
46 include roles::postgresql::ftp_master_dak_replica::db_guest_access::bm
48 @@postgres::cluster::hba_entry { "qa-buildlogchecks-${::fqdn}":
49 tag => "postgres::cluster::${qa_buildlogchecks_db_port}::hba::${qa_buildlogchecks_db_address}",
50 pg_port => $qa_buildlogchecks_db_port,
51 database => 'qa-buildlogchecks',
52 user => 'qa-buildlogchecks',
53 address => $base::public_addresses,