-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
35 lines (31 loc) · 1.43 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "nrel/CentOS-6.5-x86_64"
config.vm.network "private_network", ip: "192.168.33.17"
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048", "--cpus", "2"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
config.vm.host_name = "192.168.33.17"
config.vm.define "192.168.33.17" do |tr|
tr.vm.provision "ansible" do |ansible|
ansible.inventory_path = "../FreeSHR-Playbooks/inventories/local"
ansible.playbook = "../FreeSHR-Playbooks/all.yml"
ansible.tags = ["setup"]
ansible.vault_password_file = "~/.vaultpass.txt"
ansible.verbose = "vvvv"
end
tr.vm.provision "ansible" do |ansible|
ansible.inventory_path = "../FreeSHR-Playbooks/inventories/local"
ansible.playbook = "../FreeSHR-Playbooks/tr.yml"
ansible.tags = ["tr-server", "tr-feed-server"]
ansible.extra_vars = {atomfeedomod: "/tmp/openmrs-atomfeed-2.5.omod", restomod: "/tmp/webservices.rest-2.12.omod", trfeedomod: "/tmp/freeshr-terminology-feed-*.omod"}
ansible.vault_password_file = "~/.vaultpass.txt"
ansible.verbose = "vvvv"
end
end
end