-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
35 lines (26 loc) · 997 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 3000, host: 3000 # Rails
config.vm.network "forwarded_port", guest: 3306, host: 3306, auto_correct: true # MySQL
config.vm.network "forwarded_port", guest: 8080, host: 8080 # Jenkins
config.omnibus.chef_version = "12.3.0"
config.vm.provision :chef_solo do |chef|
chef.add_recipe "espelho-politico::default"
chef.json = {
:mysql => {
server_root_password: 'root123'
},
"espelho-politico" => {
user: 'vagrant',
linux_user: 'vagrant',
database_user_password: 'root123'
}
}
end
config.vm.provision "shell", path: "install_basics.sh"
config.vm.provision "shell", path: "install_pip.sh"
end