diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-04-21 14:50:02 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-04-21 14:50:02 +0000 |
commit | c0f6af6527ee308dddf6f2b1c91ba635a4b2e2e6 (patch) | |
tree | 4121e69013c0ee322583d5af4af0cf6f858da8c0 /manifests/firewall/rule.pp | |
parent | 239a12fe56d78ab83fa8dbf87a7022943db947dd (diff) | |
parent | a005e3e052a4e41397e7060ad3bc8f45860e5336 (diff) |
Merge "Add destination parameter to firewall rule"
Diffstat (limited to 'manifests/firewall/rule.pp')
-rw-r--r-- | manifests/firewall/rule.pp | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/manifests/firewall/rule.pp b/manifests/firewall/rule.pp index 02afbc2..ca9c6d0 100644 --- a/manifests/firewall/rule.pp +++ b/manifests/firewall/rule.pp @@ -47,29 +47,35 @@ # (optional) The chain associated to the rule. # Defaults to 'INPUT' # -# [*extras*] +# [*destination*] +# (optional) The destination cidr associated to the rule. +# Defaults to undef +# +# [*extras*] # (optional) Hash of any puppetlabs-firewall supported parameters. # Defaults to {} # define tripleo::firewall::rule ( - $port = undef, - $proto = 'tcp', - $action = 'accept', - $state = ['NEW'], - $source = '0.0.0.0/0', - $iniface = undef, - $chain = 'INPUT', - $extras = {}, + $port = undef, + $proto = 'tcp', + $action = 'accept', + $state = ['NEW'], + $source = '0.0.0.0/0', + $iniface = undef, + $chain = 'INPUT', + $destination = undef, + $extras = {}, ) { $basic = { - 'port' => $port, - 'proto' => $proto, - 'action' => $action, - 'state' => $state, - 'source' => $source, - 'iniface' => $iniface, - 'chain' => $chain, + 'port' => $port, + 'proto' => $proto, + 'action' => $action, + 'state' => $state, + 'source' => $source, + 'iniface' => $iniface, + 'chain' => $chain, + 'destination' => $destination, } $rule = merge($basic, $extras) |