Hi there, Is it possible to supply multiple args in the same inline shell provisioning block? I use them for a number of times in my Vagrantfile to set some external-facts for Puppet and that's why I'm doing at the moment:
config.vm.define node_name do |config2| > config2.vm.provision :shell do |sh| > sh.inline = "echo -e $1 >> /etc/facts.d/extn_fac.txt" > sh.args = "'sa_nodetype='"+ec2_tags['NodeType'] > end > config2.vm.provision :shell do |sh| > sh.inline = "echo -e $1 >> /etc/facts.d/extn_fac.txt" > sh.args = "'sa_servicetype='"+ec2_tags['ServiceType'] > end > ..... > ..... > end > (I used a JSON file for the node configuration and *ec2_tags[*]* bit comes from there) which looks a bit of redundant to me. As they are all going in the same file, is it possible to put multiple lines, as sh.args, at the same time? I tried with the sh.inline bit but nothing worked so far. Any help/pointer? Best! -- 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.
