Ensure eth1 comes up
These roles assume a working eth1. Vagrant is notorious brining up interfaces on RHEL/CentOS instances. The shell provisioner will execute before the dependant ansible provisioner.
This commit is contained in:
parent
b84cc14694
commit
7521c16522
1 changed files with 1 additions and 0 deletions
1
Vagrantfile
vendored
1
Vagrantfile
vendored
|
@ -106,6 +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 "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