forked from voxpupuli/puppet-openvpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
39 lines (34 loc) · 1022 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
# rubocop:disable Style/FileName
# -*- mode: ruby -*-
# vi: set ft=ruby :
def server_config(config)
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'vagrant'
puppet.manifest_file = 'server.pp'
puppet.temp_dir = '/tmp'
puppet.options = ['--modulepath=/tmp/modules']
end
end
def client_config(config)
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'vagrant'
puppet.manifest_file = 'client.pp'
puppet.temp_dir = '/tmp'
puppet.options = ['--modulepath=/tmp/modules']
end
end
Vagrant::Config.run(2) do |config|
config.vm.provision :shell, path: 'vagrant/provision_module.sh'
config.vm.define :server_ubuntu do |c|
c.vm.hostname = 'server'
c.vm.box = 'ubuntu/focal64'
server_config c
c.vm.network :private_network, ip: '192.168.61.10'
end
config.vm.define :client_ubuntu do |c|
c.vm.hostname = 'client'
c.vm.box = 'ubuntu/focal64'
client_config c
c.vm.network :private_network, ip: '192.168.61.20'
end
end