Specifically target yum based OSes

The Vagrant issue only shows up on CentOS/RHEL based OSes.  Lets
only target those when ifup'ing.
This commit is contained in:
John Dewey 2017-02-17 16:11:33 -08:00
parent 7521c16522
commit 4c59138fca
No known key found for this signature in database
GPG key ID: 85CA6C7BD56CF2EB

2
Vagrantfile vendored
View file

@ -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"))