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:
parent
bfcc524431
commit
c85a017319
2
.ansible_hosts
Normal file
2
.ansible_hosts
Normal 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
3
Vagrantfile
vendored
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user