I\'ve got a vagrant file that builds a local VM. I want to add the EC2 provider and have the option of either provisioning a local VM or one on EC2.
Can I create co
From the Vagrant docs:
Multiple config.vm.provision methods can be used to define multiple provisioners. These provisioners will be run in the order they're defined.
eg.: First install puppet in the machine and then run some puppet manifests:
$script = " wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb sudo dpkg -i puppetlabs-release-precise.deb sudo apt-get update sudo aptitude -yy install puppet " config.vm.provision "shell", inline: $script config.vm.provision "puppet" do |puppet| puppet.manifests_path = "manifest/puppet" puppet.manifest_file = "init.pp" end config.vm.provision "shell", inline: "echo Second shell provisioner"