-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
32 lines (28 loc) · 1.1 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
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.define "collector" do |collector|
collector.vm.box = "bento/oraclelinux-9"
# Set a static IP
config.vm.network "private_network", ip: "192.168.56.10"
# Forward ports
config.vm.network "forwarded_port", guest: 80, host: 8000, protocol: "tcp"
config.vm.network "forwarded_port", guest: 443, host: 8001, protocol: "tcp"
collector.vm.hostname = "panddacol"
collector.vm.provision "shell", inline: <<-SHELL
hostnamectl set-hostname "panddacol - \(o\_o\)"
SHELL
collector.vm.provision "ansible" do |ansible|
ansible.become = true
ansible.compatibility_mode = "2.0"
#ansible.raw_arguments = [ "-v" ]
ansible.inventory_path = "./ansible/inventory"
ansible.groups = {
"collector" => ["collector"]
}
ansible.playbook = "./ansible/pandda.yml"
end
end
end