-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmulti.vagrantfile
151 lines (132 loc) · 5.43 KB
/
multi.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Developer: Eddy Lackmann
# Github:https://github.com/eddylackmann
# Last update: 08th Sept 2020
# Email: a.eddy@hotmail.de
# Vagrant Configuration for Limesurvey
Vagrant.configure("2") do |config|
#LimeSurvey Master Machine
config.vm.define "master" do |master|
# Latest version of Ubuntu. Feel free to update it.
master.vm.box = "ubuntu/focal64"
#Custom variable for installation
ip = "10.0.0.10"
#php setup
phpversion = "7.4"
#mysql setup
mysqlRootPass = "password"
mysqlDBName = "limesurvey"
mySqlDBUser = "limesurvey"
mySqlDBPassword = "password"
#postgres setup
postgresDB = "limesurvey"
postgresPassword = "password"
#limesurvey setup
limeSurveyBranch = "master"
#IDE KEY for Xdebug
ideKey = "VSCODE"
#shared webfolder
master.vm.synced_folder "./master", "/var/www", :mount_options => ["dmode=777", "fmode=666"], create:true
#copy configuration
master.vm.provision "file", source: "./configuration", destination: "/var/www/configuration"
#provision file
master.vm.provision "shell", path: "provision/provision.sh", :args => [ip, phpversion,mysqlRootPass,mysqlDBName,mySqlDBUser,mySqlDBPassword,postgresDB,postgresPassword,limeSurveyBranch,ideKey]
#machine ip
master.vm.network "private_network", ip: ip
#machine hostname
master.vm.hostname = "LimeSurveyMaster"
# Needed for Windows 10 host, so ubuntu package are reachable and we can install the VirtualBox Guest Additions
master.vm.provider "virtualbox" do |vb|
vb.name = "LimeSurveyMaster"
vb.memory = 1024
vb.cpus = 2
#create serial port / Needed for ubuntu 20.04
vb.customize [ "modifyvm", :id, "--uartmode1", "file", File::NULL ]
#enable this line on windows machine (Optional).
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
end
#LimeSurvey Develop Machine
config.vm.define "develop" do |develop|
# Latest version of Ubuntu. Feel free to update it.
develop.vm.box = "ubuntu/focal64"
#Custom variable for installation
ip = "10.0.0.20"
#php setup
phpversion = "7.4"
#mysql setup
mysqlRootPass = "password"
mysqlDBName = "limesurvey"
mySqlDBUser = "limesurvey"
mySqlDBPassword = "password"
#postgres setup
postgresDB = "limesurvey"
postgresPassword = "password"
#limesurvey setup
limeSurveyBranch = "develop"
#IDE KEY for Xdebug
ideKey = "VSCODE"
#shared webfolder
develop.vm.synced_folder "./develop", "/var/www", :mount_options => ["dmode=777", "fmode=666"], create:true
#copyconfiguration
develop.vm.provision "file", source: "./configuration", destination: "/var/www/configuration"
#provision file
develop.vm.provision "shell", path: "provision/provision.sh", :args => [ip, phpversion,mysqlRootPass,mysqlDBName,mySqlDBUser,mySqlDBPassword,postgresDB,postgresPassword,limeSurveyBranch,ideKey]
#machine ip
develop.vm.network "private_network", ip: ip
#machine hostname
develop.vm.hostname = "LimeSurveyDevelop"
# Needed for Windows 10 host, so ubuntu package are reachable and we can install the VirtualBox Guest Additions
develop.vm.provider "virtualbox" do |vb|
vb.name = "LimeSurveyDevelop"
vb.memory = 1024
vb.cpus = 2
#create serial port / Needed for ubuntu 20.04
vb.customize [ "modifyvm", :id, "--uartmode1", "file", File::NULL ]
#enable this line on windows machine (Optional).
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
end
#LimeSurvey LTS Machine
config.vm.define "lts" do |lts|
#Latest version of Ubuntu. Feel free to update it.
lts.vm.box = "ubuntu/focal64"
#Custom variable for installation
ip = "10.0.0.30"
#php setup
phpversion = "5.6"
#mysql setup
mysqlRootPass = "password"
mysqlDBName = "limesurvey"
mySqlDBUser = "limesurvey"
mySqlDBPassword = "password"
#postgres setup
postgresDB = "limesurvey"
postgresPassword = "password"
#limesurvey setup
limeSurveyBranch = "3.x-LTS"
#IDE KEY for Xdebug
ideKey = "VSCODE"
#shared webfolder
lts.vm.synced_folder "./lts", "/var/www", :mount_options => ["dmode=777", "fmode=666"], create:true
#copyconfiguration
lts.vm.provision "file", source: "./configuration", destination: "/var/www/configuration"
#provision file
lts.vm.provision "shell", path: "provision/provision.sh", :args => [ip, phpversion,mysqlRootPass,mysqlDBName,mySqlDBUser,mySqlDBPassword,postgresDB,postgresPassword,limeSurveyBranch,ideKey]
#machine ip
lts.vm.network "private_network", ip: ip
#machine hostname
lts.vm.hostname = "LimeSurveyLTS"
# Needed for Windows 10 host, so ubuntu package are reachable and we can install the VirtualBox Guest Additions
lts.vm.provider "virtualbox" do |vb|
vb.name = "LimeSurveyLTS"
vb.memory = 1024
vb.cpus = 2
#create serial port / Needed for ubuntu 20.04
vb.customize [ "modifyvm", :id, "--uartmode1", "file", File::NULL ]
#enable this line on windows machine (Optional).
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
end
end