-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
27 lines (23 loc) · 864 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/25/CloudImages/x86_64/images/Fedora-Cloud-Base-Vagrant-25-1.3.x86_64.vagrant-virtualbox.box"
config.vm.box = "fedora"
config.vm.network "forwarded_port", guest:1194, host:1194, protocol:"udp"
config.vm.hostname = "vpn"
[
'hiera.yaml',
'vpn.yaml',
'firewall.yaml',
'Puppetfile',
'site.pp',
'quickstart.sh.erb',
].each do |file|
src = "files_to_provision/#{file}"
dest = "/tmp/#{file}"
config.vm.provision "file", source: src, destination: dest
end
config.vm.provision "file", source: "scripts/configure_node.sh", destination: "/tmp/configure_node.sh"
config.vm.provision "shell", inline: "/tmp/configure_node.sh"
end