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:
parent
7521c16522
commit
4c59138fca
1 changed files with 1 additions and 1 deletions
2
Vagrantfile
vendored
2
Vagrantfile
vendored
|
@ -106,7 +106,7 @@ Vagrant.configure("2") do |config|
|
||||||
# Only execute once the Ansible provisioner,
|
# Only execute once the Ansible provisioner,
|
||||||
# when all the machines are up and ready.
|
# when all the machines are up and ready.
|
||||||
if i == $num_instances
|
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|
|
config.vm.provision "ansible" do |ansible|
|
||||||
ansible.playbook = "cluster.yml"
|
ansible.playbook = "cluster.yml"
|
||||||
if File.exist?(File.join(File.dirname($inventory), "hosts"))
|
if File.exist?(File.join(File.dirname($inventory), "hosts"))
|
||||||
|
|
Loading…
Reference in a new issue