-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
46 lines (34 loc) · 1.07 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
# -*- mode: ruby -*-
# # vi: set ft=ruby :
########## Begin configuration switches ##########
# Use PHP 5.2 (vs default of 5.5)
PHP52 = true
# Install zip ext for 5.2
PHP52_ZIP = true
# Wordpress version
WORDPRESS = '3.0'
# Do multisite install
MULTISITE = false
# Use ftp file access method (vs default of direct)
FS_METHOD_FTP = true
# If above is true, set up chrooted ftp
FTP_CHROOT = true
########## End configuration switches ##########
Vagrant.configure('2') do |config|
config.vm.box = PHP52 ? 'ubuntu/precise32' : 'ubuntu/trusty32'
config.vm.hostname = "cambrian"
config.vm.network "private_network", ip: "99.99.99.10"
config.vm.synced_folder ".", "/vagrant", :nfs => true
# Provision wordpress test machine
config.vm.provision :ansible do |ansible|
ansible.playbook = "provision/provision.yml"
ansible.extra_vars = {
php52: PHP52,
php52_zip: PHP52_ZIP,
wordpress_version: WORDPRESS,
is_multisite: MULTISITE,
wp_fsmethod_ftp: FS_METHOD_FTP,
wp_ftp_chroot: FTP_CHROOT,
}
end
end