From 7480df63974459e733a6733994adc19ac464be6a Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Sun, 27 Jan 2013 20:47:01 -0500 Subject: create a special case for vagrant machines that need to have both interfaces in the net zone so we dont lock ourselves out during deploy, but also are able to access the internet --- puppet/modules/site_shorewall/manifests/eip.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'puppet/modules') diff --git a/puppet/modules/site_shorewall/manifests/eip.pp b/puppet/modules/site_shorewall/manifests/eip.pp index a3f6ee54..067b2f83 100644 --- a/puppet/modules/site_shorewall/manifests/eip.pp +++ b/puppet/modules/site_shorewall/manifests/eip.pp @@ -6,7 +6,11 @@ class site_shorewall::eip { include site_shorewall::defaults $ip_address = hiera('ip_address') - $interface = getvar("$::{ip_address}_interface") + # a special case for vagrant interfaces + $interface = $::virtual ? { + virtualbox => ['eth0', 'eth1'], + default => getvar("$::{ip_address}_interface") + } $ssh_config = hiera('ssh') $ssh_port = $ssh_config['port'] $openvpn_config = hiera('openvpn') -- cgit v1.2.3