From 4c59138fcaf11d7d51cb92e49f7b0552cdbcbed7 Mon Sep 17 00:00:00 2001 From: John Dewey Date: Fri, 17 Feb 2017 16:11:33 -0800 Subject: [PATCH] Specifically target yum based OSes The Vagrant issue only shows up on CentOS/RHEL based OSes. Lets only target those when ifup'ing. --- Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 0fed931af..cc0759812 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -106,7 +106,7 @@ Vagrant.configure("2") do |config| # Only execute once the Ansible provisioner, # when all the machines are up and ready. if i == $num_instances - config.vm.provision :shell, inline: "ifup eth1", privileged: true + config.vm.provision :shell, inline: '[[ -x "$(command -v yum)" ]] && ifup eth1', privileged: true config.vm.provision "ansible" do |ansible| ansible.playbook = "cluster.yml" if File.exist?(File.join(File.dirname($inventory), "hosts"))