projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prosody: posix_acl is fighting with the prosody module about proper modes; remove...
[mirror/dsa-puppet.git]
/
modules
/
roles
/
manifests
/
tracker.pp
diff --git
a/modules/roles/manifests/tracker.pp
b/modules/roles/manifests/tracker.pp
index
b06be44
..
d29655f
100644
(file)
--- a/
modules/roles/manifests/tracker.pp
+++ b/
modules/roles/manifests/tracker.pp
@@
-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
include apache2
include roles::sso_rp
@@
-10,8
+17,20
@@
class roles::tracker {
}
onion::service { 'tracker.debian.org': port => 80, target_address => 'tracker.debian.org', target_port => 80, direct => true }
}
onion::service { 'tracker.debian.org': port => 80, target_address => 'tracker.debian.org', target_port => 80, direct => true }
+ # 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',
}
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,
+ }
}
}