-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
Vagrantfile
39 lines (32 loc) · 961 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "geerlingguy/debian10"
inventory_groups = {
'master' => ['master'],
'remotes' => ['remote']
}
# VMware Fusion.
config.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = 1024
end
# VirtualBox.
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
end
config.vm.define "master" do |machine|
config.vm.network "forwarded_port", guest: 3000, host: 3000, auto_correct: true
config.vm.provision :ansible do |ansible|
ansible.playbook = "playbooks/master/main.yml"
ansible.become = true
ansible.extra_vars = {
deploy_target_is_pi: false,
temperature_monitor_dir: '/vagrant',
temperature_monitor_user: 'vagrant',
dashboard_uri: 'http://localhost:3000'
}
ansible.groups = inventory_groups
end
end
# TODO - Add second VM for remote-monitor server.
end