Setup a static ansible inventory

This to fix an odd race condition with autodetection of ssh forwarding and
writing the ansible inventory, this error is seen with vagrant 1.6.5.
Also cleaned up an extra ip definition that creeped into the config.

Change-Id: I4ec9338c95dfe399f7177bff4ab1cc3d6e865412
This commit is contained in:
Tim Kuhlman 2014-11-13 13:22:36 -07:00
parent bfcc524431
commit c85a017319
2 changed files with 4 additions and 1 deletions

2
.ansible_hosts Normal file
View File

@ -0,0 +1,2 @@
devstack ansible_ssh_host=192.168.10.5
mini-mon ansible_ssh_host=192.168.10.4

3
Vagrantfile vendored
View File

@ -29,13 +29,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
ds.vm.hostname = "devstack"
ds.vm.box = "monasca/devstack"
ds.vm.network :private_network, ip: "192.168.10.5"
ds.vm.network :private_network, ip: "10.1.2.44"
ds.vm.provider "virtualbox" do |vb|
vb.memory = 7168
vb.cpus = 4
end
ds.vm.provision "ansible" do |ansible|
ansible.playbook = "devstack.yml"
ansible.inventory_path = '.ansible_hosts'
end
end
@ -50,6 +50,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
end
mm.vm.provision "ansible" do |ansible|
ansible.playbook = "mini-mon.yml"
ansible.inventory_path = '.ansible_hosts'
end
end