From 78a678ca46a45292322592f536aff75c637ed442 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 23 Jan 2013 11:12:23 -0200 Subject: Changing class firewall::local to use hiera --- manifests/subsystems/firewall/local.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'manifests/subsystems/firewall') 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": -- cgit v1.2.3