-
Notifications
You must be signed in to change notification settings - Fork 6
/
Vagrantfile
36 lines (32 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
34
35
36
# -*- 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.10"
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.10"
config.vm.define "192.168.33.10" do |shr|
shr.vm.provision "ansible" do |ansible|
ansible.inventory_path = "../FreeSHR-Playbooks/inventories/local"
ansible.playbook = "../FreeSHR-Playbooks/all.yml"
ansible.limit = 'all'
ansible.tags = ["setup", "cassandra"]
ansible.extra_vars= { java_runtime: "jdk", setup_nrpe: "no" }
ansible.vault_password_file = "~/.vaultpass.txt"
end
shr.vm.provision "ansible" do |ansible|
ansible.inventory_path = "../FreeSHR-Playbooks/inventories/local"
ansible.playbook = "../FreeSHR-Playbooks/freeshr.yml"
ansible.limit = 'all'
ansible.tags = ["shr"]
ansible.extra_vars= { java_runtime: "jdk", setup_nrpe: "no" }
ansible.vault_password_file = "~/.vaultpass.txt"
end
end
end