-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
33 lines (30 loc) · 1.38 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# This project is maintained by:
# _ ____ ___ __ ____ __
# | | / / /___ _____/ (_)____/ /___ __ __ / __ \____ ______/ /________ ___________ __ ____ __
# | | / / / __ `/ __ / / ___/ / __ `/ | / / / /_/ / __ `/ ___/ __/ ___/ / / / ___/ __ \/ / / / / / /
# | |/ / / /_/ / /_/ / (__ ) / /_/ /| |/ / / _, _/ /_/ (__ ) /_/ / / /_/ (__ ) / / / /_/ / /_/ /
# |___/_/\__,_/\__,_/_/____/_/\__,_/ |___/ /_/ |_|\__,_/____/\__/_/ \__,_/____/_/ /_/\__, /\__, /
# /____//____/
#
# Email: FractalizeR@yandex.ru, vladislav.rastrusny@gmail.com
# http://www.fractalizer.ru
#
# This work is licensed under the Apache 2.0
# United States License. To view a copy of this license, visit
# http://www.apache.org/licenses/LICENSE-2.0
# or send a letter to The Apache Software Foundation Dept. 9660 Los Angeles, CA 90084-9660 U.S.A.
#
Dir.glob("./lib/vagrant/*.rb") do |fileName|
require fileName
end
PluginsChecker.ensurePluginsInstalled(['vagrant-vbguest'])
Ansible.ensureAnsibleFilesPresent
VirtualBox.configureBox("bento/centos-7.2")
settings = Settings.readFromYml('./site.yml')
VirtualBox.configureVM(settings['vars']['project_name_camel'])
Vagrant.setupNetwork(settings['roles'])
Vagrant.mountProjectSources(settings)
Ansible.install