Created
March 12, 2014 17:58
-
-
Save amaltson/9512470 to your computer and use it in GitHub Desktop.
Vagrantfile for Deis install
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 : | |
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