forked from thias/puppet-quagga
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
20 lines (18 loc) · 969 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Vagrant.configure("2") do |config|
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
config.vm.box = 'ubuntu/trusty64'
config.vm.host_name = 'quagga.example.com'
config.vm.network "forwarded_port", guest: 443, host: 8443
config.vm.provision "shell", inline: "apt-get update"
config.vm.provision "shell", inline: "apt-get install -y puppet git ruby1.9.1-dev"
config.vm.provision "shell", inline: "gem install librarian-puppet"
config.vm.provision "shell", inline: "cd /etc/puppet && librarian-puppet clean --verbose"
config.vm.provision "shell", inline: "rm -f /etc/puppet/Puppetfile*"
config.vm.provision "shell", inline: "cp /vagrant/tests/Puppetfile /etc/puppet"
config.vm.provision "shell", inline: "cd /etc/puppet && librarian-puppet install --verbose"
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'tests'
puppet.manifest_file = 'init.pp'
puppet.hiera_config_path = "tests/hiera.yaml"
end
end