Skip to content

Commit 4708840

Browse files
committed
removed unnecessary sync folder so some tests pass.
added enhancements so tests pass for xenial and yakkety.
1 parent d393cae commit 4708840

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/Vagrantfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Vagrant.configure('2') do |config|
2626
host.vm.box = box_settings['box'] unless not box_settings.key? 'box'
2727

2828
host.vm.network box_settings['network']['name'], ip: box_settings['network']['ip'] unless box_settings.key? 'network'
29+
host.vm.synced_folder '.', '/vagrant', disabled: true
2930

3031
# puts "[DEBUG] applying virtualbox settings for #{box_name} box..."
3132
customize_args = [ "modifyvm", :id ]
@@ -36,9 +37,25 @@ Vagrant.configure('2') do |config|
3637

3738
# puts "[DEBUG] provision using ansible vagrant playbook..."
3839
host.vm.provision 'ansible' do |ansible|
40+
41+
ansible.host_vars = {
42+
'xenial64.vagrant.dev' => {
43+
'ansible_python_interpreter' => '/usr/bin/python2.7',
44+
'playbook_python2' => true
45+
},
46+
'yakkety64.vagrant.dev' => {
47+
'ansible_python_interpreter' => '/usr/bin/python2.7',
48+
'playbook_python2' => true
49+
}
50+
}
51+
3952
ansible.playbook = PLAYBOOK
4053
ansible.verbose = 'v'
4154
ansible.skip_tags = 'test'
55+
ansible.extra_vars = {
56+
'env': 'vagrant',
57+
'vagrant_box': "#{box_name}"
58+
}
4259
end
4360
end
4461
end

0 commit comments

Comments
 (0)