Giter Site home page Giter Site logo

Comments (5)

fnichol avatar fnichol commented on June 13, 2024

This makes good sense. Initially I was relying on Vagrant and Berkshelf "magic" to handle cookbooks, roles, and data bags for me in Jamie's early days. Once I started writing the bluebox and ec2 drivers then the problem needed to be solved more generally.

Unless you have any bugs or blockers I'd like to circle back to this after test-kitchen/test-kitchen#35 is dealt with. That should speed up the converge action on all drivers and Vagrant should get a speed boost for free at that point.

from kitchen-vagrant.

fnichol avatar fnichol commented on June 13, 2024

Update, I think I'm going to go this way now. If I ask Vagrant for its SSH config (with vagrant ssh-config), then I can make straight up SSH calls to the VM. Seems like the right thing to do 😄

from kitchen-vagrant.

brugidou avatar brugidou commented on June 13, 2024

Do we need to upload using SCP or can't we just use the built-in vagrant chef-solo provisioning which automatically adds shared folders for the cookbook path? This would avoid running SCP every time while testing.

Adding chef.cookbooks_path ["some", "paths"] in the Vagrantfile should be enough

Now the question is how to populate the path correctly ? it seems that the private method "local_cookbooks" from the ChefDataUploader does the job for librarian/berkshelf managed repositories.

from kitchen-vagrant.

fnichol avatar fnichol commented on June 13, 2024

This should be closed out with #12

from kitchen-vagrant.

fnichol avatar fnichol commented on June 13, 2024

@brugidou thanks to @fujin's pull request you can keep the Vagrant/chef-solo provisioning by enabling the follow settings:

---
driver_plugin: vagrant
driver_config:
  use_vagrant_provision: true
  use_vagrant_berkshelf_plugin: true

The primary reason for veering slightly away from the builtin Vagrant approach is that small inconsistencies build up between the vagrant driver and all other drivers. I've even seen some new features propsed via kitchen-vagrant that need re-implementation for the other drivers. Hopefully this will help. Then again, we'll see 😄

from kitchen-vagrant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.