summaryrefslogtreecommitdiff
path: root/puppet/modules/site_config/manifests/vagrant.pp
diff options
context:
space:
mode:
authorkwadronaut <kwadronaut@leap.se>2017-05-23 16:20:26 +0200
committerkwadronaut <kwadronaut@leap.se>2017-05-23 16:20:55 +0200
commit0e09968d8ed3f245a238306de43a037d0749fd5a (patch)
tree165d49dfb17d115dbb649ffe669064f2042bb527 /puppet/modules/site_config/manifests/vagrant.pp
parent26be1f84de9efabf5fec1278401ae0c5538454d9 (diff)
parent40f7b49003594a1be8c0540a92292d7cfb63eb61 (diff)
Merge branch 'varac/platform-vagrant_private_networking'
Diffstat (limited to 'puppet/modules/site_config/manifests/vagrant.pp')
-rw-r--r--puppet/modules/site_config/manifests/vagrant.pp14
1 files changed, 9 insertions, 5 deletions
diff --git a/puppet/modules/site_config/manifests/vagrant.pp b/puppet/modules/site_config/manifests/vagrant.pp
index 8f50b305..1682de8b 100644
--- a/puppet/modules/site_config/manifests/vagrant.pp
+++ b/puppet/modules/site_config/manifests/vagrant.pp
@@ -1,11 +1,15 @@
+# Gets included on vagrant nodes
class site_config::vagrant {
- # class for vagrant nodes
include site_shorewall::defaults
- # eth0 on vagrant nodes is the uplink if
- 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';
+ }
}
}