aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/firewall
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-23 11:12:23 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-23 11:12:23 -0200
commit78a678ca46a45292322592f536aff75c637ed442 (patch)
tree66ce1795a5656c14f5c5ec5a8335661602148f6d /manifests/subsystems/firewall
parent40c517b334bd99fec985959f97e48c775ae6da3a (diff)
downloadpuppet-nodo-78a678ca46a45292322592f536aff75c637ed442.tar.gz
puppet-nodo-78a678ca46a45292322592f536aff75c637ed442.tar.bz2
Changing class firewall::local to use hiera
Diffstat (limited to 'manifests/subsystems/firewall')
-rw-r--r--manifests/subsystems/firewall/local.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/subsystems/firewall/local.pp b/manifests/subsystems/firewall/local.pp
index d998b8e..f24ac0c 100644
--- a/manifests/subsystems/firewall/local.pp
+++ b/manifests/subsystems/firewall/local.pp
@@ -1,4 +1,9 @@
-class firewall::local($network = '192.168.1.0/24', $interface = 'eth0', $manage_host = true, $manage_interface = false) {
+class firewall::local(
+ $network = hiera('firewall::local::network, '192.168.1.0/24'),
+ $interface = hiera('firewall::local::interface', 'eth0'),
+ $manage_host = hiera('firewall::local::manage_host', True),
+ $manage_interface = hiera('firewall::local::manage_iface, false)
+) {
if $manage_host {
shorewall::host { "$interface-loc":