I have a recipe that uses the file resource to grant an active directory group access to a local folder.
I don't have access to AD from my Chef workstation where I am running test kitchen.
I want to be able to converge the kitchen vm (not just spec tests).
So I was planning to use environments
- Store the group name in an attribute which would be an env attribute
- The prod env has the AD group set in the attribute
- The test env has some local group in the attribute
- Specify the test env in .kitchen.yml
Is this an appropriate use of environments? Is there another Chef mechanism for this purpose?