forked from ftao/vpn-deploy-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
40 lines (33 loc) · 1.22 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
37
38
39
40
# -*- 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.provision "shell", inline: "sudo locale-gen en_US.UTF-8"
config.vm.define "debian" do |debian|
debian.vm.box = "puphpet/debian75-x64"
debian.vm.network "private_network", ip: "192.168.33.10"
debian.vm.provision "ansible" do |ansible|
ansible.limit = 'test_debian'
ansible.playbook = "test.yml"
ansible.inventory_path = "ansible_hosts.vagrant"
ansible.host_key_checking = false
ansible.extra_vars = { ssh_user: 'vagrant' }
end
end
config.vm.define "ubuntu" do |ubuntu|
ubuntu.vm.box = "ubuntu/trusty64"
ubuntu.vm.network "private_network", ip: "192.168.33.20"
ubuntu.vm.provision "ansible" do |ansible|
ansible.limit = 'test_ubuntu'
ansible.playbook = "test.yml"
ansible.inventory_path = "ansible_hosts.vagrant"
ansible.host_key_checking = false
ansible.extra_vars = { ssh_user: 'vagrant' }
end
end
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
end