forked from silpion/ansible-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
35 lines (25 loc) · 960 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
# vim: set ft=ruby ts=2 sw=2 et:
# -*- mode: ruby -*-
VAGRANT_API_VERSION = '2'
Vagrant.configure(VAGRANT_API_VERSION) do |config|
config.vm.box = 'ubuntu/trusty64'
config.vm.define :ansiblejavatest do |d|
d.vm.hostname = 'ansiblejavatest'
d.vm.synced_folder '.', '/vagrant', id: 'vagrant-root', disabled: true
d.vm.provision :ansible do |ansible|
ansible.playbook = 'tests/keystore.yml'
ansible.tags = ENV['ANSIBLE_TAGS']
ansible.groups = {
'vagrant' => ['ansiblejavatest']
}
ansible.limit = 'vagrant'
::File.directory?('.vagrant/provisioners/ansible/inventory/') do
ansible.inventory_path = '.vagrant/provisioners/ansible/inventory/'
end
end
d.vm.provider :virtualbox do |v|
v.customize 'pre-boot', ['modifyvm', :id, '--nictype1', 'virtio']
v.customize [ 'modifyvm', :id, '--name', 'ansiblejavatest', '--memory', '512', '--cpus', '1' ]
end
end
end