projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
872979e
)
salsa: allow postgresql connections from backuphosts through firewall
author
Peter Palfrader
<peter@palfrader.org>
Fri, 1 Sep 2017 11:49:36 +0000
(11:49 +0000)
committer
Peter Palfrader
<peter@palfrader.org>
Fri, 1 Sep 2017 11:49:36 +0000
(11:49 +0000)
modules/salsa/manifests/database.pp
patch
|
blob
|
history
diff --git
a/modules/salsa/manifests/database.pp
b/modules/salsa/manifests/database.pp
index
b363b79
..
e2793c1
100644
(file)
--- a/
modules/salsa/manifests/database.pp
+++ b/
modules/salsa/manifests/database.pp
@@
-35,4
+35,10
@@
class salsa::database inherits salsa {
tag => "postgresql::server::backup-source-sshkey",
}
}
+
+ @ferm::rule { "dsa-postgres-${postgresql::params::port}":
+ description => 'Allow postgress access from backup host',
+ domain => '(ip ip6)',
+ rule => "&SERVICE_RANGE(tcp, ${postgresql::params::port}, ( @ipfilter(\$HOST_PGBACKUPHOST) ))",
+ }
}