-
Notifications
You must be signed in to change notification settings - Fork 16
/
Vagrantfile
32 lines (30 loc) · 842 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
31
32
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ancient/Centos7.Ansible"
config.vm.synced_folder "logs/", "/opt/logs"
config.vm.network "forwarded_port", guest: 80, host: 80
config.vm.network "forwarded_port", guest: 9200, host: 9200
config.vm.network "forwarded_port", guest: 5601, host: 5601
if Vagrant::Util::Platform.windows?
config.vm.provision :guest_ansible do |ansible|
ansible.verbose = "vvv"
ansible.playbook = "site.yml"
ansible.extra_vars = {
host_variable: "localhost",
es_mem: "1g",
env: "local"
}
end
else
config.vm.provision :ansible do |ansible|
ansible.verbose = "vvv"
ansible.playbook = "site.yml"
ansible.extra_vars = {
host_variable: "localhost",
es_mem: "1g",
env: "local"
}
end
end
end