forked from Vlatombe/Cerberus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
executable file
·77 lines (68 loc) · 2.03 KB
/
Vagrantfile
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Use Ubuntu 14.04 Trusty Tahr 64-bit as our operating system
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "dev-cerberus.vagrant"
# Configurate the virtual machine to use 2GB of RAM
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
end
# Forward the Rails server default port to the host
config.vm.network :forwarded_port, guest: 3000, host: 3000
config.librarian_chef.cheffile_dir = "chef"
# Use Chef Solo to provision our virtual machine
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["chef/cookbooks", "chef/site-cookbooks"]
chef.roles_path = "chef/roles"
chef.add_recipe "apt"
chef.add_recipe "ruby_build"
chef.add_recipe "rbenv::user"
chef.add_recipe "rbenv::vagrant"
chef.add_recipe "vim"
chef.add_recipe "krb5"
chef.add_recipe "krb5::rkerberos_gem"
chef.add_recipe "cerberus"
# Install Ruby 2.1.2 and Bundler
# Set an empty root password for MySQL to make things simple
chef.json = {
rbenv: {
user_installs: [{
user: 'vagrant',
rubies: ["2.1.2"],
global: "2.1.2",
#gems: {
# "2.1.2" => [
# { name: "bundler" }
# ]
#}
}]
},
krb5: {
krb5_conf: {
libdefaults: {
default_realm: 'workgroup'
},
realms: {
workgroup: [ "iis.domain.net" ]
}
}
},
bundler: {
apps_path: "/vagrant"
},
cerberus: {
database: {
username: "cerberus",
password: "cerberus"
},
mysql: {
initial_root_password: "Ch4ng3me"
}
}
}
end
end