Created
July 26, 2013 00:04
-
-
Save ubermuda/6084942 to your computer and use it in GitHub Desktop.
From 0 to ready in one command. vagrant+packer=the\ future.
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "symfony2" | |
config.vm.box_url = "/Users/ash/Projects/packer-templates/symfony2/vmware.box" | |
config.vm.hostname = 'stage1' | |
config.vm.network :private_network, ip: '192.168.215.42' | |
config.vm.synced_folder ".", "/vagrant", :nfs => true | |
config.hostmanager.enabled = true | |
config.hostmanager.manage_host = true | |
config.vm.provision :shell, | |
:inline => "if [ -f /vagrant/composer.json ]; then cd /vagrant && composer install; else composer create-project symfony/framework-standard-edition /tmp/symfony 2.3.1; mv /tmp/symfony/* /vagrant; fi" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment