First off, I'm new to Vagrant, but in the last three days I've managed to replace a large volume of cruft and manual processes with a 73 line Vagrant file. Needless to say I am very impressed.
Looking through the code, I didn't see this implemented, but it would really be nice.
My problem is that I am creating developer VM's, using the same Rightscale scripts used in production. These scripts are pulled using their REST API's. These scripts rely on environment variables to provide inputs.
What would be nice is something along the lines of:
config.vm.provision :shell do |shell|
shell.path = './rightscale-scripts/php.sh'
shell.env['OPT_PHP_MODULES_LIST'] = 'php-devel php-mysql php-gd php-zts'
shell.env['RS_REBOOT'] = 'false'
shell.env['RS_DISTRO'] = 'centos'
end
Current I am modifying the scripts on the fly to set these environment variables at the beginning of the script.
Does this seem like a valid enhancement? If someone could point me in the right direction, I can give a shot at adding this functionality.
Thomas