Skip to content

Instantly share code, notes, and snippets.

@amaltson
Created March 12, 2014 17:58
Show Gist options
  • Save amaltson/9512470 to your computer and use it in GitHub Desktop.
Save amaltson/9512470 to your computer and use it in GitHub Desktop.
Vagrantfile for Deis install
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = 'ubuntu-12.04-provisionerless'
config.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-12.04_chef-provisionerless.box'
config.vm.host_name = 'deis'
config.vm.network :private_network, ip: "192.168.33.10"
# Enable SSH agent forwarding for git clones
config.ssh.forward_agent = true
# Detects vagrant-omnibus plugin
if Vagrant.has_plugin?('vagrant-omnibus')
puts 'INFO: Vagrant-omnibus plugin detected.'
config.omnibus.chef_version = :latest
else
puts "FATAL: Vagrant-omnibus plugin not detected. Please install the plugin with\n 'vagrant plugin install vagrant-omnibus' from any other directory\n before continuing."
exit
end
config.vm.provision "chef_client" do |chef|
chef.chef_server_url = "https://devserverconfig"
chef.validation_key_path = "chef-validator.pem"
chef.add_recipe "deis::controller"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment