Closed jessechahal closed 8 years ago
I think the attributes only get passed to the provisioner stage and are not accessible by the busser plugin that's why i create the config.yml. I am going to change to use a verifier instead of a busser which will make it easier to pass in parameters.
I've deprecated busser-ansible-spec you can use https://github.com/neillturner/kitchen-verifier-serverspec. and there is a ansiblespec_runner.rb that can be easily customized.
closing for now
I'm using kitchen-ansible to test individual roles that I've created. These roles may or may not depend on other roles. I've create a single playbook that can be used to test any ansible role and it's dependent roles. This is done by passing the role in as a variable. So the converge works exactly as expected, the role runs and whatever the role is supposed to do. Each role has a spec folder with a serverspec test. The verify step does not work as expected and I believe its because the variables I've passed in don't get propagated to the ansiblespec busser.
part of my .kitchen.yml
default.yml
test/some_role/ansiblespec/config.yml
kitchen verify output
So I've tested the setup using a single playbook per role approach and everything has worked fine. Its pretty far from ideal to create 1 playbook per role for all 500+ roles that we have. Is there something I'm missing?