summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2017-05-23 13:58:38 +0200
committervarac <varacanero@zeromail.org>2017-05-23 14:19:56 +0200
commit40f7b49003594a1be8c0540a92292d7cfb63eb61 (patch)
tree165d49dfb17d115dbb649ffe669064f2042bb527 /puppet/modules
parentd2824a6bc1178c6c2ce4923faacfde8e05f8389a (diff)
[vagrant] Don't block eth0 if eth1 is configured
Eth0 is vagrant's main interface to access the box
Diffstat (limited to 'puppet/modules')
-rw-r--r--puppet/modules/site_config/manifests/vagrant.pp12
1 files changed, 8 insertions, 4 deletions
diff --git a/puppet/modules/site_config/manifests/vagrant.pp b/puppet/modules/site_config/manifests/vagrant.pp
index 23ca4de1..1682de8b 100644
--- a/puppet/modules/site_config/manifests/vagrant.pp
+++ b/puppet/modules/site_config/manifests/vagrant.pp
@@ -2,10 +2,14 @@
class site_config::vagrant {
include site_shorewall::defaults
- # eth0 on vagrant nodes is the uplink
- shorewall::interface { 'eth0':
- zone => 'net',
- options => 'tcpflags,blacklist,nosmurfs';
+
+ if ( $::site_config::params::interface == 'eth1' ) {
+ # Don't block eth0 even if eth1 is configured, because
+ # it's vagrant's main interface to access the box
+ shorewall::interface { 'eth0':
+ zone => 'net',
+ options => 'tcpflags,blacklist,nosmurfs';
+ }
}
}