Questions tagged [test-kitchen]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

While doing “kitchen converge”, node.name returns value “kitchen”. chef-shell on the same node returns proper node name

I am running a recipe in test-kitchen (Vagrant + VirtualBox), which is using a node.name value. But when I do kitchen converge, then node.name inside my recipe returns kitchen, while my node hostname (...
0
votes
0answers
26 views

Different versiomn of ChefDK within the same local machine

I'm not sure if this possible? But, how we are able to have Two different version of ChefDK within the same local machine? I'm running MacOS X btw. Thanks!
0
votes
1answer
51 views

Chef: Kitchen Converge fails on Windows 10 Guest using Vagrant FileTransporter Error

As described in the bug I created here: https://github.com/test-kitchen/kitchen-vagrant/issues/407 When I perform a kitchen converge on a freshly created Windows 10 box, it connects and begins ...
0
votes
1answer
129 views

how to use chef vault credentials in ec2-kitchen

So we use chef-vault to manage secrets, and chef_zero as our provisioner. We have a base docker cookbook that installs docker and logs into docker hub. Then we have docker image specific cookbooks ...
3
votes
2answers
911 views

Test Kitchen not detecting winrm and uses SSH for windows guest

I'm new to test kitchen with windows I'm testing chef recipes on a windows machine using Test Kitchen with Vagrant (virtualbox) I have win-2012-r2 box that works fine with Vagrant (both winrm and ...
1
vote
1answer
257 views

SSH hardening with chef test-kitchen. How to tell test-kitchen how to connect?

I wrote a chef cookbook and it runs fine with test-kitchen. Now I want to harden ssh access to the production nodes by writing a recipe that overwrites /etc/ssh/sshd_config. Among other things, it ...
2
votes
2answers
1k views

test-kitchen with Windows guest converging fails with WinRMAuthorizationError

I'm trying to get test-kitchen working with a guest Windows VM. I've followed a lot of Matt Wrock's excellent blog posts. I've set up a working Windows Vagrant box, used the right test-kitchen and ...
1
vote
1answer
127 views

Cannot kitchen init as non-root

I am trying to use test-kitchen, a tool to test chef (etc) cookbooks with virtual machines. However when following the guide and doing kitchen init --driver=kitchen-vagrant, I get the following error:...