You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the awesome forklift project as a plugin to quickly test out the Foreman. In my setup I am unable to use the sync_type option and based on the documentation I set it to sync_type: 'disabled'.
However, the above does not work and it always ends up with the default sync_type: 'rsync'. After some investigation, I managed to update the code to honor the documented value disabled.
Below is the diff of my changes which I am happy 😄 to submit a pull request.
diff --git a/vagrant/lib/forklift/box_distributor.rb b/vagrant/lib/forklift/box_distributor.rb
index c087781..fb673fe 100644
--- a/vagrant/lib/forklift/box_distributor.rb+++ b/vagrant/lib/forklift/box_distributor.rb@@ -240,7 +240,10 @@ module Forklift
def configure_libvirt(machine, box, networks = [])
machine.vm.provider :libvirt do |p, override|
override.vm.box_url = box.fetch('libvirt') if box.fetch('libvirt', false)
- override.vm.synced_folder '.', '/vagrant', type: @settings['sync_type'], rsync__args: ['--max-size=100m']++ if @settings.key?('sync_type') and @settings['sync_type'] != 'disabled'+ override.vm.synced_folder '.', '/vagrant', type: @settings['sync_type'], rsync__args: ['--max-size=100m']+ end
if box.fetch('bridged', false)
override.vm.network :public_network, :dev => box.fetch('bridged'), :mode => 'bridge'
The text was updated successfully, but these errors were encountered:
I am using the awesome
forklift
project as a plugin to quickly test out the Foreman. In my setup I am unable to use thesync_type
option and based on the documentation I set it tosync_type: 'disabled'
.However, the above does not work and it always ends up with the default
sync_type: 'rsync'
. After some investigation, I managed to update the code to honor the documented valuedisabled
.Below is the diff of my changes which I am happy 😄 to submit a pull request.
The text was updated successfully, but these errors were encountered: