-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
36 lines (29 loc) · 965 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
33
34
35
36
VAGRANTFILE_API_VERSION = '2'
Vagrant.require_version '>= 1.8.0'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider "virtualbox" do |v|
v.linked_clone = true
end
config.vm.define "deb" do |deb|
deb.vm.hostname = "ansible-papertrail-deb"
deb.vm.box = "ubuntu/xenial64"
# Install python
deb.vm.provision "install python", type: "shell" do |s|
s.inline = "sudo apt-get update && sudo apt-get -y install python-minimal && export PYTHONUNBUFFERED=1"
end
# Run playbook
deb.vm.provision "playbook", type: "ansible" do |ansible|
ansible.verbose = "v"
ansible.playbook = "playbook.yml"
end
end
config.vm.define "rhel" do |rhel|
rhel.vm.hostname = "ansible-papertrail-rhel"
rhel.vm.box = "generic/rhel7"
# Run playbook
rhel.vm.provision "playbook", type: "ansible" do |ansible|
ansible.verbose = "v"
ansible.playbook = "playbook.yml"
end
end
end