nm.d.o no longer needs access to projectb on bmdb1
[mirror/dsa-puppet.git] / modules / roles / manifests / rtmaster.pp
1 # rt.debian.org
2 #
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 class roles::rtmaster (
6   String  $db_address,
7   Integer $db_port,
8 ) {
9   include apache2
10   ssl::service { 'rt.debian.org':
11     notify => Exec['service apache2 reload'],
12     key    => true,
13   }
14
15   # Note that there is also role specific config in exim4.conf
16   exim::vdomain { 'rt.debian.org':
17     mail_user  => 'rt',
18     mail_group => 'rt',
19   }
20
21   @@postgres::cluster::hba_entry { "rt-${::fqdn}":
22     tag      => "postgres::cluster::${db_port}::hba::${db_address}",
23     pg_port  => $db_port,
24     database => 'rtdb',
25     user     => 'rtuser',
26     address  => $base::public_addresses,
27   }
28 }