Note that exim contains tracker-specific configuration
[mirror/dsa-puppet.git] / modules / roles / manifests / tracker.pp
1 # tracker.debian.org service
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::tracker (
6   String  $db_address,
7   Integer $db_port,
8 ) {
9   include apache2
10   include roles::sso_rp
11
12   package { 'libapache2-mod-wsgi-py3': ensure => installed, }
13   apache2::module { 'wsgi': require => Package['libapache2-mod-wsgi-py3'] }
14   ssl::service { 'tracker.debian.org':
15     notify => Exec['service apache2 reload'],
16     key    => true,
17   }
18   onion::service { 'tracker.debian.org': port => 80, target_address => 'tracker.debian.org', target_port => 80, direct => true }
19
20   # tell the mail-relays to forward this domain to us
21   exim::manualroute{ 'tracker.debian.org': }
22   # and then handle it locally
23   # Note that there is also role specific config in exim4.conf
24   exim::vdomain { 'tracker.debian.org':
25     owner => 'qa',
26     group => 'qa',
27   }
28
29   @@postgres::cluster::hba_entry { "tracker-${::fqdn}":
30     tag      => "postgres::cluster::${db_port}::hba::${db_address}",
31     pg_port  => $db_port,
32     database => ['tracker', 'tracker-test'],
33     user     => 'qa',
34     address  => $base::public_addresses,
35   }
36 }