projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manage danzi/tracker pg_hba
[mirror/dsa-puppet.git]
/
modules
/
roles
/
manifests
/
tracker.pp
diff --git
a/modules/roles/manifests/tracker.pp
b/modules/roles/manifests/tracker.pp
index
e2ed250
..
962e92c
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
@@
-17,4
+24,12
@@
class roles::tracker {
owner => 'qa',
group => 'qa',
}
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,
+ }
}
}