This repository has been archived by the owner on Dec 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Vagrantfile
62 lines (51 loc) · 1.39 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
ENV['ANSIBLE_ROLES_PATH'] = "#{File.dirname(__FILE__)}/../"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# VirtualBox.
config.vm.provider :virtualbox do |v|
v.memory = 512
v.cpus = 1
end
# Ubuntu Precise (12.04 LTS)
config.vm.define "precise" do |precise|
precise.vm.hostname = "precise"
precise.vm.box = "ubuntu/precise64"
# Ansible.
precise.vm.provision "ansible" do |ansible|
ansible.playbook = "vagrant.yml"
ansible.sudo = true
end
end
# Ubuntu Trusty (14.04 LTS)
config.vm.define "trusty" do |trusty|
trusty.vm.hostname = "trusty"
trusty.vm.box = "ubuntu/trusty64"
# Ansible.
trusty.vm.provision "ansible" do |ansible|
ansible.playbook = "vagrant.yml"
ansible.sudo = true
end
end
# Debian Wheezy
config.vm.define "wheezy" do |wheezy|
wheezy.vm.hostname = "wheezy"
wheezy.vm.box = "debian/wheezy64"
# Ansible.
wheezy.vm.provision "ansible" do |ansible|
ansible.playbook = "vagrant.yml"
ansible.sudo = true
end
end
# Debian Jessie
config.vm.define "jessie", primary: true do |jessie|
jessie.vm.hostname = "jessie"
jessie.vm.box = "debian/jessie64"
# Ansible.
jessie.vm.provision "ansible" do |ansible|
ansible.playbook = "vagrant.yml"
ansible.sudo = true
end
end
end