Questions tagged [test-kitchen]

6 questions
3
votes
2 answers

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 rdp works) But, when using the same with kitchen, it…
Shan
  • 153
  • 1
  • 1
  • 8
2
votes
2 answers

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 kitchen-vagrant branches and have managed to get…
Arthur Maltson
  • 312
  • 3
  • 12
1
vote
1 answer

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 changes the ssh port to a non-default one. When now…
Heinzi
  • 171
  • 1
  • 6
1
vote
1 answer

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: create .kitchen.yml append …
Amandasaurus
  • 30,211
  • 62
  • 184
  • 246
0
votes
1 answer

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 syncing the cookbooks locally on the box, but it fails…
0
votes
1 answer

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 that start various docker images, like…
bitherder
  • 1
  • 1