From 7521c165223f257446c2e54f9632b17cc1f0c82b Mon Sep 17 00:00:00 2001 From: John Dewey Date: Thu, 16 Feb 2017 11:45:21 -0800 Subject: [PATCH] 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. --- Vagrantfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Vagrantfile b/Vagrantfile index a068eeabf..0fed931af 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -106,6 +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 "ansible" do |ansible| ansible.playbook = "cluster.yml" if File.exist?(File.join(File.dirname($inventory), "hosts"))