forked from bisdn/basebox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
29 lines (25 loc) · 916 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
# -*- mode: ruby -*-
# If you are using Virtualbox, please make sure you have the vbguest plugin installed.
NAME = 'basebox'
Vagrant.configure("2") do |config|
config.vm.hostname = NAME
config.vm.box = "fedora/28-cloud-base"
config.vm.network "forwarded_port", guest: 6653, host: 6653
config.vm.synced_folder "salt/roots/", "/srv/salt/", type: "nfs", nfs_version: 3, nfs_udp: false
config.vm.provision :salt do |salt|
salt.masterless = true
salt.minion_config = "salt/minion"
salt.run_highstate = true
end
config.vm.provider "virtualbox" do |vb, override|
override.vm.synced_folder ".", "/vagrant", type: "virtualbox"
vb.name = NAME
vb.memory = 1024
vb.cpus = 2
end
config.vm.provider :libvirt do |libvirt, override|
override.vm.synced_folder "./", "/vagrant", type: "nfs", nfs_version: 3, nfs_udp: false
libvirt.memory = 1024
libvirt.cpus = 2
end
end