summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-02-10 09:21:13 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-02-10 09:21:13 -0200
commit49c4dd9653312f0e2faa6c9b8583ae2f59e01082 (patch)
tree7189a9d1781d7ab29e5c532609c9849d567cd4f4
parent1dd66761a9c71baf9a5164b23018efe7f4c94bf4 (diff)
downloadpuppet-firewall-49c4dd9653312f0e2faa6c9b8583ae2f59e01082.tar.gz
puppet-firewall-49c4dd9653312f0e2faa6c9b8583ae2f59e01082.tar.bz2
Adds firewall::ssh param
-rw-r--r--manifests/init.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index c3ebe34..c812955 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -5,7 +5,8 @@ class firewall(
$local_net = hiera('firewall::local_net', false),
$device_options = hiera('firewall::device_options', 'tcpflags,blacklist,routefilter,nosmurfs,logmartians'),
$vm_address = hiera('firewall::vm_address', '192.168.0.0/24'),
- $vm_device = hiera('firewall::vm_device', false)
+ $vm_device = hiera('firewall::vm_device', false),
+ $ssh = hiera('firewall::ssh', 'ACCEPT'),
) {
class { 'shorewall': }
@@ -137,7 +138,7 @@ class firewall(
# Rules
#
shorewall::rule { 'ssh':
- action => 'SSH/ACCEPT',
+ action => "SSH/${ssh}",
source => 'net',
destination => '$FW',
proto => '-',