Created
December 23, 2014 02:11
-
-
Save kaz29/7fdcdd685332fdf614ee to your computer and use it in GitHub Desktop.
phpci_handson
This file contains 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 : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
if Vagrant.has_plugin?("vagrant-cachier") | |
config.cache.scope = :box | |
end | |
config.vm.define :develop do |develop| | |
develop.omnibus.chef_version = :latest | |
develop.vm.hostname = "develop" | |
develop.vm.box = "php_ci_book_develop" | |
develop.vm.box_url = "~/Desktop/phpci/boxes/php_ci_book_develop.box" | |
develop.vm.network :private_network, ip: "192.168.33.10" | |
develop.vm.synced_folder "application", "/var/www/application/current", | |
id: "vagrant-root", :nfs => false, | |
:owner => "vagrant", | |
:group => "www-data", | |
:mount_options => ["dmode=775,fmode=775"] | |
end | |
config.vm.define :ci do |ci| | |
ci.omnibus.chef_version = :latest | |
ci.vm.hostname = "ci" | |
ci.vm.box = "php_ci_book_ci" | |
ci.vm.box_url = "~/Desktop/phpci/boxes/php_ci_book_ci.box" | |
ci.vm.network :private_network, ip: "192.168.33.100" | |
end | |
config.vm.define :deploy do |deploy| | |
deploy.omnibus.chef_version = :latest | |
deploy.vm.hostname = "deploy" | |
deploy.vm.box = "php_ci_book_deploy" | |
deploy.vm.box_url = "~/Desktop/phpci/boxes/php_ci_book_deploy.box" | |
deploy.vm.network :private_network, ip: "192.168.33.200" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment