This repository has been archived by the owner on Jun 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
54 lines (43 loc) · 1.74 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.hostname = "idg"
config.vm.network :forwarded_port, guest: 8080, host: 8080
# allow the creation of symbolic links in the shared folder.
# this is needed for some builds with cmmi and for omelette to work.
# 'v-root' is the default-name for the primary volume.
config.vm.provider :virtualbox do |vb|
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
# a workaround for missing symbolic links on windows:
# config.vm.synced_folder "eggs/", "/home/vagrant/buildout-cache/eggs/"
# read initial package index information + upgrade
config.vm.provision :shell, inline: <<-SHELL
apt-get update
apt-get -y upgrade
SHELL
# we need to install puppet on the guest before we can use it
config.vm.provision :shell, inline: <<-SHELL
apt-get install -y puppet
SHELL
# install operating System dependencies
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "packages.pp"
end
# create a Putty-style keyfile for Windows users
# FIXME: fails with: "default: /tmp/vagrant-shell: 43: [: /vagrant/README.rst: unexpected operator"
# config.vm.provision :shell do |shell|
# shell.path = "manifests/host_setup.sh"
# shell.args = RUBY_PLATFORM
# end
# install IDG
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "plone.pp"
end
end