Hi I'm trying the following:

$provision_script= <<SCRIPT
        /bin/bash -c "%s\t %s\n"  "$(hostname)" "$(ip -f inet -o addr show 
eth1 | awk "-F[ /]+" "{ print \$4 }")" >> /vagrant/hosts
 SCRIPT

      config.vm.provision :shell, :inline => $provision_script


I expected everything between the SCRIPT lines to function like a bash 
shell script. However it seems like ruby is interpreting the quotes 
differently than what I get from the shell.  Then what is a SCRIPT ? I 
assume that to get the behavior I would like, I need to create a shell 
script on the vagrant host and use the other provisioning methods.

I guess I wanted to state that I like the Vagrant docs, but many things 
seem short on details. I'm not even sure of some fundamental things like 
how boxes work from reading the docs. Will there be any effort to make the 
documentation more complete? I wish there was a more wiki-ish interface, or 
a place to leave comments under the documentation, like many old projects 
used to use. Where do I go for more complete information, without 
sacrificing time ? 

-- 
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/d/optout.

Reply via email to