I'm trying to figure out how I can read information about one machine and
use it to set a an attribute (chef solo provisioner) on a second instance.
For the sake of the discussion lets say I have a two machine configuration
using a cloud provider (not virtualbox). We'll say I have DB and WEB. I
want to bring up the DB box first and then once its been given an IP, I
want to grab its IP and populate a node attribute (via the chef.json hash).
I do understand that this is easy with chef-server provisioner, but trying
to accomplish it with chef-solo provisioner.
So the pseudo code would be something like:
web.vm.provision :chef_solo do |chef|
chef.blah
chef.json = {:db_server_ip => find_db_serverip()}
end
Can something like this be done?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.