Last active
December 18, 2015 07:58
-
-
Save jgrossiord/5750069 to your computer and use it in GitHub Desktop.
Vagrantfile sample for vagrant-silex-hello-world
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
# tells that the VM is a "Ubuntu 32 bits Precise VM" | |
config.vm.box = "precise32" | |
# gives the URL of the VM if you did not issue the vagrant add command before | |
config.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
# asks Vagrant to run a script at the startup of the VM | |
# (this is the important part, we will talk further on this point) | |
config.vm.provision :shell, :path => "script/vagrant-bootstrap.sh" | |
# ask Vagrant to configure a network card on the VM having a private IP. | |
config.vm.network :private_network, ip: "10.11.12.1" | |
# ask Vagrant to configure a network card on the VM having a "public" IP, | |
# given by your DHCP server. This IP will be accessible from your local network. | |
config.vm.network :public_network | |
# instructs Vagrant to synchronize the current directory with the /vagrant directory | |
# of the VM having the /vagrant directory owned by www-data | |
config.vm.synced_folder "./", "/vagrant", :owner => "www-data", :group => "www-data" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment