-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVagrantfile
More file actions
43 lines (34 loc) · 1.57 KB
/
Copy pathVagrantfile
File metadata and controls
43 lines (34 loc) · 1.57 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
35
36
37
38
39
40
41
42
43
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Define the webproject to bootstrap with ansible
BOOTSTRAP_WEBPROJECT_PLAYBOOK = "#{File.dirname(__FILE__)}/data/web/ansible/playbook.yml"
BOOTSTRAP_WEBPROJECT_REPOSITORY = "https://github.com/benjaminrau/typo3-bootstrap.git"
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |vconfig|
#vconfig.vm.box = "puppetlabs/debian-7.4-64-nocm"
vconfig.vm.box = "vagrant-debian-wheezy64"
vconfig.vm.box_url = "http://vagrant.br0ken.de/debian/wheezy64/v2.2/vagrant-debian-wheezy64.box"
vconfig.vm.define :t3devbox do |config|
config.vm.provider :virtualbox do |v|
# set memory to 512MB
v.customize [ "modifyvm", :id, "--memory", "1024" ]
#v.gui = true #debugging
v.name = "t3devbox"
v.cpus = 1
end
config.vm.host_name = "t3devbox"
config.vm.network :private_network, ip: "192.168.56.11"
config.vm.provision :shell do |shell|
shell.path = "bootstrap_webproject.sh"
shell.args = "'#{BOOTSTRAP_WEBPROJECT_PLAYBOOK}' '#{BOOTSTRAP_WEBPROJECT_REPOSITORY}'"
end
config.vm.provision :ansible do |ansible|
ansible.playbook = "ansible/playbook.yml"
ansible.inventory_path = "ansible/hosts"
ansible.extra_vars = {bootstrap_webproject_playbook: BOOTSTRAP_WEBPROJECT_PLAYBOOK}
end
end
NEWUSER_UID = 2030
vconfig.vm.synced_folder "data/", "/data", owner: NEWUSER_UID, group: NEWUSER_UID
end