summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--puppet/modules/site_shorewall/manifests/eip.pp6
1 files changed, 5 insertions, 1 deletions
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')