Skip to content

Instantly share code, notes, and snippets.

@cakper
Forked from jakzal/Vagrantfile
Created February 17, 2014 17:25
Show Gist options
  • Save cakper/9055063 to your computer and use it in GitHub Desktop.
Save cakper/9055063 to your computer and use it in GitHub Desktop.
VAGRANTFILE_API_VERSION = "2"
digital_ocean_client_id = ''
digital_ocean_api_key = ''
Vagrant.require_plugin "vagrant-librarian-chef"
Vagrant.require_plugin "vagrant-omnibus"
Vagrant.require_plugin "vagrant-vbguest"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "saucy64"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.provider "virtualbox" do |provider, override|
override.vm.network :private_network, ip: "10.10.20.2"
provider.customize ["modifyvm", :id, "--memory", "1024"]
end
config.vm.provider :digital_ocean do |provider, override|
override.ssh.private_key_path = '~/.ssh/id_rsa'
override.vm.box = 'digital_ocean'
override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
provider.client_id = digital_ocean_client_id
provider.api_key = digital_ocean_api_key
provider.image = 'Ubuntu 13.10 x64'
provider.region = 'Amsterdam 2'
provider.size = '512MB'
provider.setup = true
end
config.librarian_chef.cheffile_dir = "./tools/chef"
config.omnibus.chef_version = :latest
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["./tools/chef/cookbooks", "./tools/chef/site-cookbooks"]
chef.roles_path = "./tools/chef/roles"
chef.add_role "php-cli"
chef.json = {}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment