Skip to content
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

Missing files in /vagrant #467

Closed
arthurzenika opened this issue Sep 17, 2019 · 4 comments
Closed

Missing files in /vagrant #467

arthurzenika opened this issue Sep 17, 2019 · 4 comments

Comments

@arthurzenika
Copy link

When using kitchen with vagrant/virtualbox, we have /vagrant which is synced with rsync (or mounted with NFS) so that the code can be tested. Switching to kitchen-ec2 it seems that nothing is in /vagrant, is it in another place ? Do we have to add a provisionner to copy over the files ?

@arthurzenika
Copy link
Author

I've just realised that I seem to be using version 2.2.2

/opt/chefdk/embedded/lib/ruby/gems/2.5.0/gems/kitchen-ec2-2.2.2/lib/kitchen/driver/ec2.rb

Is this the problem ?

@cheeseplus
Copy link
Contributor

cheeseplus commented Sep 17, 2019

This is because kitchen-ec2, or anything that isn't kitchen-vagrant for that matter, makes no use of Vagrant itself, it talks directly (well via the aws SDK) to the cloud. If you want to sync up arbitrary data you can use data_path https://docs.chef.io/config_yml_kitchen.html#provisioner-settings.

@arthurzenika
Copy link
Author

Adding data_path to the provisionner seems to do the job. Now I have to find a way to exclude some patterns (.git and .tox folders are not usefull and are pretty big).

@cheeseplus
Copy link
Contributor

I'm closing this issue as the reported problem isn't really applicable to this project and you've opened another for the specific issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants