Comments (6)
I also left a comment on #4 on this, as cross reference.
from kitchen-vagrant.
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.
@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.
@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.
@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.
Please see my comment on #35
from kitchen-vagrant.
Related Issues (20)
- hyper-v error HOT 3
- kitchen converage error HOT 1
- Kitchen converge fails on Windows 10 syncing initial cookbooks HOT 1
- <VagrantPlugins::RDP::Config:0x00000001039ce8f8> (NoMethodError) HOT 4
- Specifying custom SSH port does not work HOT 1
- Provide a way to change the main disk's size HOT 1
- SMB File Shares are hanging HOT 1
- kitchen create error(s) - hyper-v win server 2016 guest HOT 2
- Add qemuargs to libvirt section HOT 2
- Windows WSL with Hyper-V fails HOT 1
- box_auto_prune: true - do not cause an error when an older box is still actively in use on the machine, just wait until the next run to try again HOT 1
- box_auto_update -- produces an error when no box exists already to check for an update against HOT 2
- Consider always warning when a new box is available
- kitchen adds carriage return to shebang on bootstrap.sh when converging effortless package HOT 1
- SSH Config not sufficient in WSL2 HOT 4
- Unable to configure network with Vagrant/VirtualBox HOT 7
- Unable to configure network with Vagrant/VirtualBox HOT 3
- `network': wrong number of arguments (given 2, expected 1) (ArgumentError) HOT 1
- RSA key no longer accepted by OpenSSH 8.8+ HOT 1
- AWS credentials not passing through to Vagrant box HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitchen-vagrant.