summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'puppet')
-rw-r--r--puppet/modules/site_shorewall/manifests/couchdb/bigcouch.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/puppet/modules/site_shorewall/manifests/couchdb/bigcouch.pp b/puppet/modules/site_shorewall/manifests/couchdb/bigcouch.pp
index a0d63d15..85272657 100644
--- a/puppet/modules/site_shorewall/manifests/couchdb/bigcouch.pp
+++ b/puppet/modules/site_shorewall/manifests/couchdb/bigcouch.pp
@@ -7,6 +7,7 @@ class site_shorewall::couchdb::bigcouch {
$bigcouch_replication_server = $stunnel['bigcouch_replication_server']
$bigcouch_replication_server_port = $bigcouch_replication_server['accept']
+ $bigcouch_replication_connect = $bigcouch_replication_server['connect']
# define macro for incoming services
file { '/etc/shorewall/macro.leap_bigcouch':
@@ -26,7 +27,7 @@ class site_shorewall::couchdb::bigcouch {
$bigcouch_shorewall_dnat_defaults = {
'source' => '$FW',
'proto' => 'tcp',
- 'destinationport' => '4369',
+ 'destinationport' => regsubst($bigcouch_replication_connect, '^([0-9.]+:)([0-9]+)$', '\2')
}
create_resources(site_shorewall::couchdb::dnat, $bigcouch_replication_clients, $bigcouch_shorewall_dnat_defaults)