|
@@ -1,21 +1,17 @@
|
1
|
1
|
# -*- mode: ruby -*-
|
2
|
2
|
|
3
|
|
-Vagrant.configure("2") do |config|
|
4
|
|
- #
|
5
|
|
- # Common Settings
|
6
|
|
- #
|
7
|
|
-
|
8
|
|
- config.vm.hostname = "sovereign.local"
|
9
|
|
- config.vm.network "private_network", ip: "172.16.100.2"
|
|
3
|
+Vagrant.configure('2') do |config|
|
|
4
|
+ config.vm.hostname = 'sovereign.local'
|
|
5
|
+ config.vm.network 'private_network', ip: '172.16.100.2'
|
10
|
6
|
|
11
|
7
|
config.vm.provision :ansible do |ansible|
|
12
|
|
- ansible.playbook = "site.yml"
|
|
8
|
+ ansible.playbook = 'site.yml'
|
13
|
9
|
ansible.host_key_checking = false
|
14
|
|
- ansible.extra_vars = { ansible_ssh_user: "vagrant", testing: true }
|
|
10
|
+ ansible.extra_vars = { ansible_ssh_user: 'vagrant', testing: true }
|
15
|
11
|
|
16
|
|
- # ansible.tags = ["blog"]
|
17
|
|
- # ansible.skip_tags = ["openvpn"]
|
18
|
|
- # ansible.verbose = "vvvv"
|
|
12
|
+ # ansible.tags = ['blog']
|
|
13
|
+ # ansible.skip_tags = ['openvpn']
|
|
14
|
+ # ansible.verbose = 'vvvv'
|
19
|
15
|
end
|
20
|
16
|
|
21
|
17
|
config.vm.provider :virtualbox do |v|
|
|
@@ -23,42 +19,25 @@ Vagrant.configure("2") do |config|
|
23
|
19
|
end
|
24
|
20
|
|
25
|
21
|
config.vm.provider :vmware_fusion do |v|
|
26
|
|
- v.vmx["memsize"] = "512"
|
|
22
|
+ v.vmx['memsize'] = '512'
|
27
|
23
|
end
|
28
|
24
|
|
29
|
|
- #
|
30
|
25
|
# vagrant-cachier
|
31
|
26
|
#
|
32
|
27
|
# Install the plugin by running: vagrant plugin install vagrant-cachier
|
33
|
28
|
# More information: https://github.com/fgrehm/vagrant-cachier
|
34
|
|
- #
|
35
|
|
-
|
36
|
|
- if Vagrant.has_plugin? "vagrant-cachier"
|
|
29
|
+ if Vagrant.has_plugin? 'vagrant-cachier'
|
37
|
30
|
config.cache.enable :apt
|
38
|
31
|
config.cache.scope = :box
|
39
|
32
|
end
|
40
|
33
|
|
41
|
|
- #
|
42
|
|
- # Debian 7 64-bit (officially supported)
|
43
|
|
- #
|
44
|
|
-
|
45
|
|
- config.vm.define "debian", primary: true do |debian|
|
46
|
|
- debian.vm.box = "box-cutter/debian76"
|
|
34
|
+ # Debian 8 64-bit (officially supported)
|
|
35
|
+ config.vm.define 'jessie', primary: true do |jessie|
|
|
36
|
+ jessie.vm.box = 'dhoppe/debian-8.0.0-amd64-nocm'
|
47
|
37
|
end
|
48
|
38
|
|
49
|
|
- #
|
50
|
|
- # Ubuntu 12.04 64-bit
|
51
|
|
- #
|
52
|
|
-
|
53
|
|
- config.vm.define "precise", autostart: false do |precise|
|
54
|
|
- precise.vm.box = "box-cutter/ubuntu1204"
|
55
|
|
- end
|
56
|
|
-
|
57
|
|
- #
|
58
|
|
- # Ubuntu 14.04 64-bit
|
59
|
|
- #
|
60
|
|
-
|
61
|
|
- config.vm.define "trusty", autostart: false do |trusty|
|
62
|
|
- trusty.vm.box = "box-cutter/ubuntu1404"
|
|
39
|
+ # Ubuntu 14.04.2 (LTS) 64-bit
|
|
40
|
+ config.vm.define 'trusty', autostart: false do |trusty|
|
|
41
|
+ trusty.vm.box = 'dhoppe/ubuntu-14.04.2-amd64-nocm'
|
63
|
42
|
end
|
64
|
43
|
end
|