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/main pg_hba
[mirror/dsa-puppet.git]
/
modules
/
roles
/
manifests
/
rtmaster.pp
diff --git
a/modules/roles/manifests/rtmaster.pp
b/modules/roles/manifests/rtmaster.pp
index
131c80c
..
38a6d7e
100644
(file)
--- a/
modules/roles/manifests/rtmaster.pp
+++ b/
modules/roles/manifests/rtmaster.pp
@@
-1,4
+1,11
@@
-class roles::rtmaster {
+# rt.debian.org
+#
+# @param db_address hostname of the postgres server for this service
+# @param db_port port of the postgres server for this service
+class roles::rtmaster (
+ String $db_address,
+ Integer $db_port,
+) {
include apache2
ssl::service { 'rt.debian.org':
notify => Exec['service apache2 reload'],
include apache2
ssl::service { 'rt.debian.org':
notify => Exec['service apache2 reload'],
@@
-10,4
+17,12
@@
class roles::rtmaster {
mail_user => 'rt',
mail_group => 'rt',
}
mail_user => 'rt',
mail_group => 'rt',
}
+
+ @@postgres::cluster::hba_entry { "rt-${::fqdn}":
+ tag => "postgres::cluster::${db_port}::hba::${db_address}",
+ pg_port => $db_port,
+ database => 'rtdb',
+ user => 'rtuser',
+ address => $base::public_addresses,
+ }
}
}