forked from Mainframe-Archive/switchboard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
30 lines (25 loc) · 881 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
IP = "192.168.50.2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.ssh.forward_agent = true
config.vm.provision "ansible" do |ansible|
ansible.playbook = "provisioning/playbook.yml"
ansible.groups = {"switchboard" => ["default"]}
ansible.extra_vars = {
"switchboard_host" => IP,
"switchboard_clone" => false,
"switchboard_profile" => "dev",
"switchboard_google_client_id" => nil,
"switchboard_google_client_secret" => nil,
}
# To run a subset of tasks, use e.g. TAGS="builder,switchboard" vagrant provision
if ENV.has_key? "TAGS"
ansible.tags = ENV["TAGS"].split ","
end
end
config.vm.network "private_network", ip: IP
config.vm.synced_folder ".", "/home/vagrant/switchboard"
end