Note that exim contains tracker-specific configuration
[mirror/dsa-puppet.git] / modules / roles / manifests / tracker.pp
index e2ed250..d29655f 100644 (file)
@@ -1,4 +1,11 @@
-class roles::tracker {
+# tracker.debian.org service
+#
+# @param db_address     hostname of the postgres server for this service
+# @param db_port        port of the postgres server for this service
+class roles::tracker (
+  String  $db_address,
+  Integer $db_port,
+) {
   include apache2
   include roles::sso_rp
 
@@ -13,8 +20,17 @@ class roles::tracker {
   # tell the mail-relays to forward this domain to us
   exim::manualroute{ 'tracker.debian.org': }
   # and then handle it locally
+  # Note that there is also role specific config in exim4.conf
   exim::vdomain { 'tracker.debian.org':
     owner => 'qa',
     group => 'qa',
   }
+
+  @@postgres::cluster::hba_entry { "tracker-${::fqdn}":
+    tag      => "postgres::cluster::${db_port}::hba::${db_address}",
+    pg_port  => $db_port,
+    database => ['tracker', 'tracker-test'],
+    user     => 'qa',
+    address  => $base::public_addresses,
+  }
 }