This repository has been archived by the owner on Oct 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvagrantfile
85 lines (70 loc) · 3.17 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
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
# ----------------------------------------------------------------------------------------------------------------------
# This file is part of {@link https://github.com/MovLib MovLib}.
#
# Copyright © 2013-present {@link https://movlib.org/ MovLib}.
#
# MovLib is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public
# License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# MovLib is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY# without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License along with MovLib.
# If not, see {@link http://www.gnu.org/licenses/ gnu.org/licenses}.
# ----------------------------------------------------------------------------------------------------------------------
# ----------------------------------------------------------------------------------------------------------------------
# Main Vagrant configuration file.
#
# Please note that NetBeans doesn't have syntax highlighting for Ruby anymore.
#
# LINK: http://www.vagrantup.com/
# AUTHOR: Richard Fussenegger <[email protected]>
# COPYRIGHT: © 2013 MovLib
# LICENSE: http://www.gnu.org/licenses/agpl.html AGPL-3.0
# LINK: https://movlib.org/
# SINCE: 0.0.1-dev
# ----------------------------------------------------------------------------------------------------------------------
Vagrant.require_plugin 'vagrant-hostsupdater'
# The vbguest plugin has bugs!
#Vagrant.require_plugin 'vagrant-vbguest'
Vagrant.configure("2") do |config|
# The name of the Vagrant box.
config.vm.box = "MovLib"
# The name of the Vagrant machine.
# LINK: http://stackoverflow.com/a/20431791/1251219
config.vm.define "MovDev" do |md|
end
# The URL from where the 'config.vm.box' box will be downloaded if it doesn't exist on the developer's system.
config.vm.box_url = "https://tools.movlib.org/vagrant/MovLib.box"
# The hostname of the guest system.
config.vm.hostname = "movlib.local"
# Fixed IP address for compatibility with the vagrant hostsupdater plugin.
config.vm.network :private_network, ip: "192.168.42.42"
# Provider-specific configuration.
#
# LINK: http://docs.vagrantup.com/v2/virtualbox/configuration.html
config.vm.provider :virtualbox do |vb|
# Don't boot in headless mode.
vb.gui = true
# The name of the virtual machine.
vb.name = "MovDev"
# Control various VM settings.
#
# LINK: http://www.virtualbox.org/manual/ch08.html
#vb.customize [ "modifyvm", :id, "--monitorcount", "2" ]
vb.customize [ "modifyvm", :id, "--clipboard", "bidirectional" ]
end
# Set up submdomains.
config.hostsupdater.aliases = [
# Default subdomains
"localize.movlib.local",
"tools.movlib.local",
"www.movlib.local",
# Language specific subdomains
"de.movlib.local",
"en.movlib.local",
]
# Download, configure, and install everything.
config.vm.provision "shell", path: "bin/vagrant.sh"
end