diff options
author | varac <varacanero@zeromail.org> | 2013-02-06 23:34:29 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-02-06 23:34:29 +0100 |
commit | 18a2f385ff1f56f493db5302f5ae51173a65cd86 (patch) | |
tree | e843be263ad5d2e2d0bea8a44c342fd37e6b30de /puppet/modules/site_shorewall/manifests/couchdb.pp | |
parent | 07afa7bd4c7dcb941e3984d4fccc1169baf03448 (diff) |
configure shorewall for couchdb, tor, webapp
Diffstat (limited to 'puppet/modules/site_shorewall/manifests/couchdb.pp')
-rw-r--r-- | puppet/modules/site_shorewall/manifests/couchdb.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/puppet/modules/site_shorewall/manifests/couchdb.pp b/puppet/modules/site_shorewall/manifests/couchdb.pp new file mode 100644 index 00000000..1b7f791d --- /dev/null +++ b/puppet/modules/site_shorewall/manifests/couchdb.pp @@ -0,0 +1,22 @@ +class site_shorewall::couchdb { + + include site_shorewall::defaults + + $couchdb_port = '6984' + + # define macro for incoming services + file { '/etc/shorewall/macro.leap_couchdb': + content => "PARAM - - tcp $couchdb_port", + notify => Service['shorewall'] + } + + + shorewall::rule { + 'net2fw-couchdb': + source => 'net', + destination => '$FW', + action => 'leap_couchdb(ACCEPT)', + order => 200; + } + +} |