Skip to content

Commit

Permalink
tests: add support for testing on libvirt
Browse files Browse the repository at this point in the history
This adds support for testing on libvirt as well as for testing on
nested libvirt with nested vagrant.
  • Loading branch information
dustymabe committed Jul 20, 2016
1 parent 0f7efa7 commit 76336fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ end

group :plugins do
gem "vagrant-sshfs" , path: "."
# Add vagrant-libvirt plugin here, otherwise you won't be able to
# use libvirt as a provider when you execute `bundle exec vagrant up`
gem "vagrant-libvirt" , '0.0.33'
end
7 changes: 7 additions & 0 deletions features/sshfs_cwd_mount.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ Feature: SSHFS mount of vagrant current working directory
# Disable the default rsync
config.vm.synced_folder '.', '/vagrant', disabled: true
# If using libvirt and nested virt (vagrant in vagrant) then
# we need to use a different network than 192.168.121.0
config.vm.provider :libvirt do |libvirt|
libvirt.management_network_name = 'vagrant-libvirt-test'
libvirt.management_network_address = '192.168.129.0/24'
end
# Mount up the current dir. It will have the Vagrantfile in there.
config.vm.synced_folder './', '/testdir', type: 'sshfs'
end
Expand Down

0 comments on commit 76336fa

Please sign in to comment.