-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
34 lines (28 loc) · 1.03 KB
/
Copy pathVagrantfile
File metadata and controls
34 lines (28 loc) · 1.03 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'vagrant-nsidc/plugin'
Vagrant.configure(2) do |config|
memory_gb = 16
config.vm.provider :vsphere do |vsphere|
vsphere.memory_mb = 1024 * memory_gb
vsphere.cpu_count = 4
end
config.vm.provision :shell do |s|
s.name = 'apt-get update'
s.inline = 'apt-get update'
end
config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: ["/puppet/modules/*", "/puppet/.tmp/*"]
config.vm.provision :shell do |s|
s.name = 'librarian-puppet install'
s.inline = 'cd /vagrant/puppet && librarian-puppet install --path=./modules --verbose'
end
config.vm.provision :puppet do |puppet|
puppet.working_directory = '/vagrant'
puppet.manifests_path = './puppet'
puppet.manifest_file = 'site.pp'
puppet.options = '--detailed-exitcodes --modulepath ./puppet/modules'
puppet.environment = VagrantPlugins::NSIDC::Plugin.environment
puppet.environment_path = './puppet/environments'
puppet.hiera_config_path = './puppet/hiera.yaml'
end
end