summaryrefslogtreecommitdiff
path: root/puppet/modules/site_shorewall/manifests/eip.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-10-25 15:34:27 +0200
committervarac <varacanero@zeromail.org>2012-10-25 15:34:27 +0200
commitb5a5bfb69f62f5f31f8e81bdcb0dcabb7b4082f6 (patch)
tree1910c9d45f043494ce039554aa8031dd97911f93 /puppet/modules/site_shorewall/manifests/eip.pp
parent78bed6218cc6a52d812d0df23c537654bc6b5fed (diff)
replace hardcoded interface eth0 with hiera variable
Diffstat (limited to 'puppet/modules/site_shorewall/manifests/eip.pp')
-rw-r--r--puppet/modules/site_shorewall/manifests/eip.pp10
1 files changed, 6 insertions, 4 deletions
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 {