I am using Openstack as my provider and I could create openstack instance using my Vagrant script. In Vagrant script I am using
os.floating_ip = :auto
for assigning floating IP address to my openstack instances. How can I get newly created machine info within the same Vagrant script after it has been created? I want to get the floating IP address that has been assigned automatically to that machine.
Following is my script
Vagrant.configure("2") do |config|
config.vm.box = "dummy"
config.vm.synced_folder '.', '/vagrant', disabled: true
config.ssh.private_key_path = "/home/xxxxx"
config.vm.provider :openstack do |os|
os.username = "xxx"
os.api_key = "xxx"
os.flavor = "m1.medium"
os.image = "ubuntu14.04"
os.endpoint = "http://xxx"
os.keypair_name = "xxx"
os.floating_ip = :auto
os.floating_ip_pool = "xxx"
os.ssh_username = "ubuntu"
os.network = "xxx"
os.server_name = "TestInstant"
end
end