-
Notifications
You must be signed in to change notification settings - Fork 15
/
Vagrantfile
40 lines (32 loc) · 962 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
36
37
38
39
40
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
config.cache.enable :apt
config.cache.enable :npm
config.cache.enable :generic, {
"R" => { cache_dir: "/usr/local/lib/R" }
}
end
config.vm.provider "virtualbox" do |v|
v.memory = 4096
v.cpus = 2
end
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.define "flow" do |node| end
config.vm.provision "ansible" do |ansible|
ansible.verbose = ENV["ANSIBLE_VERBOSE"] | ""
ansible.groups = {
"all" => ['flow'],
"girder" => ['flow'],
"mongo" => ['flow'],
"rabbitmq" => ['flow']
}
ansible.extra_vars = {
default_user: "vagrant",
ansible_python_interpreter: "/usr/bin/python3"
}
ansible.playbook = "devops/ansible/site.yml"
ansible.galaxy_role_file = "devops/ansible/requirements.yml"
end
end