-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVagrantfile
More file actions
17 lines (16 loc) · 792 Bytes
/
Copy pathVagrantfile
File metadata and controls
17 lines (16 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "kmonticolo/openbsd62"
config.vm.network "public_network"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provision "shell", inline: <<-SHELL
ftp -o - https://raw.githubusercontent.com/kmonticolo/OpenBSD-owncloud-puppet/master/site.pp >site.pp
test -f /etc/installurl || echo "http://ftp.icm.edu.pl/pub/OpenBSD" > /etc/installurl
unset PKG_PATH
which puppet 2>/dev/null || sudo pkg_add puppet-4.10.9v0
for i in /usr/local/bin/*[0-9][0-9]; do j=`echo $i | sed 's/[0-9][0-9]$//'`; test -L $j || ln -s $i $j;done
puppet module list|grep -q stdlib || puppet module install puppetlabs-stdlib
puppet apply /home/vagrant/site.pp
SHELL
end