forked from plone/plonedev.vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
42 lines (34 loc) · 1.37 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
UI_URL = "https://launchpad.net/plone/5.0/5.0a2/+download/Plone-5.0a2-UnifiedInstaller.tgz"
UI_OPTIONS = "standalone --password=admin"
Vagrant.configure("2") do |config|
config.vm.box = "trusty32"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box"
config.vm.network :forwarded_port, guest: 8080, host: 8080
config.vm.provider "virtualbox" do |vb|
#vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--name", "plonedev" ]
end
# Run apt-get update as a separate step in order to avoid
# package install errors
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "aptgetupdate.pp"
end
# ensure we have the packages we need
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "plone.pp"
end
# Create a Putty-style keyfile for Windows users
config.vm.provision :shell do |shell|
shell.path = "manifests/host_setup.sh"
shell.args = RUBY_PLATFORM
end
# install Plone
config.vm.provision :shell do |shell|
shell.path = "manifests/install_plone.sh"
shell.args = UI_URL + " '" + UI_OPTIONS + "'"
end
end