Closed sc68cal closed 9 years ago
# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
- # config.vm.provision "shell", inline <<-SHELL
- # sudo apt-get install apache2
- # SHELL
+ config.vm.provision "shell",
+ inline: "sudo apt-get install -y apache2"
end
This is on vagrant 1.7.1
Hi @sc68cal thank you for the report. This has already been fixed in https://github.com/mitchellh/vagrant/commit/5dfe323a2e6df504f576b2c60f2e034173f655a4.
The Vagrantfile that is created when running
vagrant init
has an example of using the shell provisioner, but when the example is uncommented, it creates a syntax error.