-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathVagrantfile
More file actions
37 lines (30 loc) · 1.23 KB
/
Vagrantfile
File metadata and controls
37 lines (30 loc) · 1.23 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
Vagrant.require_version ">= 1.9"
Vagrant.configure(2) do |config|
config.vm.box = "boxcutter/ubuntu1604"
config.vm.box_version = "~> 2.0.26"
# Enable agent forwarding over SSH connections
config.ssh.forward_agent = true
# Port forwarding for Django's development server.
config.vm.network "forwarded_port", guest: 8000, host: 8000,
auto_correct: true
# Port forwarding for Glances server.
config.vm.network "forwarded_port", guest: 61208, host: 61208,
auto_correct: true
# Port forwarding for pgAdmin4 server.
config.vm.network "forwarded_port", guest: 5050, host: 5050,
auto_correct: true
config.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 2
v.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-on-restore", "1"]
v.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-start"]
v.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", "5000"]
end
# Salt provisioning.
config.vm.synced_folder "salt/roots/", "/srv/"
config.vm.provision :salt do |salt|
salt.masterless = true
salt.minion_config = "salt/minion"
salt.run_highstate = true
end
end