I am trying to use the kitchen-ssh driver in the .kitchen.yml file to run test kitchen on a remote node, but running kitchen commands simply uses the SSH connection to spin up a VM on that node’s ipaddress.
Rather than spinning up a new VM with every kitchen command, I want to make kitchen run the Inspec tests on the actual node itself, then withdraw from the SSH, returning the pass/fail log of the tests.
**My questions:** Am I misusing kitchen-ssh here, or missing the point of test kitchen's create/test/destroy methodology? Or am I just combining the wrong tools to try to accomplish what I need?
When I run kitchen test or kitchen create/converge with the below .yml file everything runs perfectly fine, and I get no failures, but I don’t actually understand what’s going on with the SSH connection - I haven’t found much documentation on how kitchen-ssh works and what it does other than the following github link:
Thanks for your help.
My .kitchen.yml file:
- name: rhel-6.7
- name: default