forked from brewbit/brewbit-provision
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
43 lines (34 loc) · 1.32 KB
/
Vagrantfile
File metadata and controls
43 lines (34 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
config.omnibus.chef_version = '11.10.0'
config.vm.define :staging, primary: true do |staging|
staging.vm.hostname = 'staging.brewbit.com'
end
config.vm.define :production do |production|
production.vm.hostname = 'production.brewbit.com'
end
config.vm.provider :digital_ocean do |provider, override|
override.ssh.username = 'vagrant'
override.ssh.private_key_path = '~/.ssh/id_rsa'
provider.ssh_key_name = 'nick'
override.vm.box = 'digital_ocean'
override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
provider.token = ENV['DIGITAL_OCEAN_ACCESS_TOKEN']
provider.image = 'ubuntu-14-04-x64'
provider.region = 'sfo1'
provider.size = '2gb'
provider.private_networking = false
provider.backups_enabled = false
provider.setup = true
end
config.vm.provision :chef_solo do |chef|
chef.roles_path = 'roles'
chef.environments_path = 'environments'
chef.cookbooks_path = ['cookbooks', 'site-cookbooks']
chef.data_bags_path = 'data_bags'
chef.encrypted_data_bag_secret_key_path = "#{ENV['HOME']}/.chef/encrypted_data_bag_secret"
chef.environment = 'production' # TODO make this dynamic!
chef.add_role 'web'
end
end