forked from sous-chefs/consul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
22 lines (18 loc) · 908 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Vagrant.configure('2') do |config|
# Set the version of chef to install using the vagrant-omnibus plugin
config.omnibus.chef_version = :latest
# Enabling the Berkshelf plugin. To enable this globally, add this configuration
# option to your ~/.vagrant.d/Vagrantfile file
config.berkshelf.enabled = true
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = 'opscode-ubuntu-12.04'
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
config.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box"
config.vm.define :bootstrap, primary: true do |guest|
guest.vm.network :private_network, ip: '172.16.38.10'
guest.vm.provision :chef_solo do |chef|
chef.run_list = ['recipe[consul::default]', 'recipe[consul::ui]']
end
end
end