-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
29 lines (24 loc) · 974 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
# rubocop:disable Metrics/LineLength
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.vm.box = 'ubuntu/trusty64'
config.vm.hostname = 'emilito-vm'
config.vm.box_check_update = false
config.ssh.forward_agent = true
vm_ip = ENV.fetch 'EMILITO_VM_IP', '192.168.50.20'
config.vm.network 'private_network', ip: vm_ip
config.vm.synced_folder '.', '/vagrant', type: 'nfs', mount_options: ['nolock,vers=3,udp']
config.vm.provider 'virtualbox' do |vb|
vb.memory = '2048'
end
config.vm.provision 'ansible_local' do |ansible|
ansible.tags = ENV['TAGS']
ansible.playbook = 'cm/vagrant.yml'
ansible.galaxy_role_file = 'cm/requirements.yml'
ansible.galaxy_roles_path = 'cm/roles/.galaxy'
ansible.verbose = 'v'
end
end