-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
31 lines (25 loc) · 999 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
BASE_NET = ENV['BASE_NET'] || '10.0.0'
Vagrant.configure("2") do |config|
%w(re-a re-b re-c re-d).to_enum.with_index(25).each do |s,i|
config.vm.define s.to_sym do |node|
node.vm.box = 'ubuntu-16.04.3_puppet-4.10.8'
node.vm.hostname = "#{s}.local"
node.vm.network :private_network, ip: "#{BASE_NET}.#{i}"
config.vm.provider :libvirt do |domain, override|
override.vm.network :private_network, ip: "#{BASE_NET}.#{i}"
domain.uri = 'qemu+unix:///system'
domain.memory = 2048
domain.cpus = 2
override.vm.synced_folder './', '/vagrant', type: 'nfs', nfs_udp: false, nfs_version: 4
end
node.vm.provision :shell, :inline => 'sudo apt update'
node.vm.provision :puppet do |puppet|
puppet.manifests_path = 'manifests'
puppet.manifest_file = 'default.pp'
puppet.options = '--modulepath=/vagrant/modules:/vagrant/static-modules --hiera_config /vagrant/hiera_vagrant.yaml'
end
end
end
end