-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVagrantfile
More file actions
34 lines (28 loc) · 836 Bytes
/
Vagrantfile
File metadata and controls
34 lines (28 loc) · 836 Bytes
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 :
conf = {}
conf_files = ['.mk/vagrant.yml', 'vagrant.yml']
conf_files.each do |c|
if File.exists?(c)
conf.merge!(YAML.load_file(c))
end
end
Vagrant.configure(2) do |config|
config.vm.define conf['name'] do |d|
d.vm.box = conf['box']
d.vm.provider "virtualbox" do |v|
v.memory = conf['ram']
v.cpus = conf['cpus']
end
d.vm.hostname = conf['hostname']
d.vm.network 'private_network', ip: conf['IP']
config.vm.network "forwarded_port", guest: conf['port'], host: 8888
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
d.vm.provision "shell",
inline: "cd /vagrant && sudo make deps && make bashrc && . ~/.bashrc && make install && make drupal",
privileged: false,
keep_color: true
end
end