-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rsync all files #166
Comments
Actually, this is a legacy code and i don't really know the reason... In my opinion, ignoring vcs ignored files in rsync is a useful feature but it should not be the default behavior. I suggest to add a configuration attribute ExampleIf i would like to ignore files from config.vm.provider :openstack do |os|
...
os.rsync_ignore_files = ['.gitignore']
...
end @julienvey, what do you think about that ? @vinsh, does it makes sense for you ? Feel free to submit a pull request. |
As discussed in: vagrant-openstack-provider issue ggiamarchi#166 rsync all files ggiamarchi#166
Have tested this change out and it works well. I'm not confident that this change is as efficient as it can be. Please suggest any code style improvements! |
As discussed in: vagrant-openstack-provider issue ggiamarchi#166 rsync all files ggiamarchi#166
Adding exclude pattern file list param for rsync Fix ggiamarchi#166
The rsync features used in this plugin include code that does the following:
# during rsync, ignore files specified in .hgignore and
# .gitignore traditional .gitignore or .hgignore files
I want to understand why?
This causes an issue for our use case:
Deployment keys for puppet added to a puppet master.
These keys are copied into the vagrantfile folder (which happens to be a git repo as usual)... at node bringup time.
However we don't allow those keys to be committed to git.
We have the directory containing these keys in the .gitignore...
vagrant-openstack-provider then ignores that folder and we end up missing a lot of files we expect to see in /vagrant from the rsync.
Can you suggest a work around? I have added a flag to this plugin to ignore any rsync exclusions. If you agree this is a good feature to have.. I can submit a pull request.
The text was updated successfully, but these errors were encountered: