Giter Site home page Giter Site logo

Comments (6)

lxndrp avatar lxndrp commented on June 13, 2024

I also left a comment on #4 on this, as cross reference.

from kitchen-vagrant.

fnichol avatar fnichol commented on June 13, 2024

Sorry about the confusion here, did you happen to have a .kitchen.yml config I could see as an example?

In release 0.10.0 we refactored the driver so that Test Kitchen treats a Vagrant VM as just another SSH-connected host. In this way the Vagrant driver becomes more like the other drivers (using more implementation from the base SSH driver) and less of a special case.

The implication of this refactoring means that Test Kitchen installs the Omnibus package the same way it would for the EC2, Rackspace, Docker, and LXC drivers (etc.).

By chance are do you have use_vagrant_provision: true set in your .kitchen.yml?

from kitchen-vagrant.

atomic-penguin avatar atomic-penguin commented on June 13, 2024

@fnichol, I must be missing something, because when I do a test-kitchen run with master. Omnibus never gets installed.

Also have:
vagrant: 1.2.4
kitchen-vagrant: 0.11.1
vagrant-omnibus: 1.1.1

Tried setting require_chef_omnibus: true, use_vagrant_provision: true, both individually and together. Tried @thielena's patch, but for some reason, I'm just not getting omnibus in there for the test-kitchen run. Upgraded to vagrant 1.3.0, and ran into issue #40.

How does one get omnibus installed, post 0.10.0 refactor, because I'm actually kind of lost on what to try next?

EDIT: finally got it working with this patch, must have been something stale in ~/.vagrant.d or /.kitchen. shrugs

NINJA EDIT:
require_chef_omnibus: latest works with the patch, while require_chef_omnibus: true does not.

from kitchen-vagrant.

 avatar commented on June 13, 2024

@fnichol, I'm using following versions:

vagrant (1.2.4)
vagrant-berkshelf (1.3.3)
vagrant-omnibus (1.1.0)
kitchen-vagrant (0.11.0)

.kitchen.yml as follows:

---
driver_plugin: vagrant
driver_config:
  use_vagrant_berkshelf_plugin: true
  use_vagrant_provision: true
  require_chef_omnibus: latest
  customize:
     memory: 2048

platforms:
- name: centos-6.4
  driver_config:
    box: opscode-centos-6.4
    box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-6.4_provisionerless.box
    network:
    - ["forwarded_port", {guest: 8080, host: 8080}]

- name: ubuntu-12.04
  driver_config:
    box: opscode-ubuntu-12.04
    box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box
    network:
    - ["forwarded_port", {guest: 8080, host: 8080}]

suites:
- name: default
  data_bags_path: "test/data_bags"
  run_list: ["recipe[testcookbook]"]
  attributes:

from kitchen-vagrant.

nitinmohan87 avatar nitinmohan87 commented on June 13, 2024

@fnichol If we have only require_chef_omnibus option set, the chef omnibus installation is take care of in the test-kitchen. But using use_vagrant_provision option bypasses test-kitchen convergence and uses vagrant provisioner - https://github.com/opscode/kitchen-vagrant/blob/master/lib/kitchen/driver/vagrant.rb#L59-L66

If we set use_vagrant_provision, the converge phase assumes that chef is installed in the VM which may not be true.

Pull request #35 fixes this issue. It adds the c.omnibus.chef_version to the Vagrantfile so that the converge phase actually installs chef when both use_vagrant_provision and require_chef_omnibus are set.

The same pull request also takes care of #44 to some extent. We would want to use additional vagrant plugins (take vagrant-ohai plugin for example) in our development.

from kitchen-vagrant.

sethvargo avatar sethvargo commented on June 13, 2024

Please see my comment on #35

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.