From b5a5bfb69f62f5f31f8e81bdcb0dcabb7b4082f6 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 25 Oct 2012 15:34:27 +0200 Subject: replace hardcoded interface eth0 with hiera variable --- puppet/modules/site_shorewall/manifests/eip.pp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'puppet') diff --git a/puppet/modules/site_shorewall/manifests/eip.pp b/puppet/modules/site_shorewall/manifests/eip.pp index 0902039c..31ee3e6c 100644 --- a/puppet/modules/site_shorewall/manifests/eip.pp +++ b/puppet/modules/site_shorewall/manifests/eip.pp @@ -5,6 +5,8 @@ class site_shorewall::eip { include site_shorewall::defaults + $interface = hiera('interface') + # define macro file { "/etc/shorewall/macro.leap_eip": content => 'PARAM - - tcp 53,80,443,1194 @@ -21,11 +23,11 @@ PARAM - - udp 53,80,443,1194 shorewall::zone {'eip': type => 'ipv4'; } - shorewall::routestopped {'eth0': - interface => 'eth0'; } + shorewall::routestopped {'$interface': + interface => '$interface'; } - shorewall::masq {'eth0': - interface => 'eth0', + shorewall::masq {'$interface': + interface => '$interface', source => ''; } shorewall::policy { -- cgit v1.2.3