-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds options to run littlechef outside of kitchen, fixes library usage #252
base: master
Are you sure you want to change the base?
Conversation
Removes `gems` parameter from call to deploy_chef in README.md, as it is no longer a valid parameter.
Added a kitchen-path option so fix can run outside of kitchen. Added a skip-node-data-bag option to minimize knife requirements on the provisioning box. Library invocations work.
This looks really great. Path to the kitchen was something has needed more robustness for a long time now. As tests i would suggest one for each of the two new options |
Btw., your "Simple example of using littlechef as a library" gist denotes how involved it still is to use it. Did you really need to set so many options? A more simpler option would be to set in code the kitchen path and have a |
Thanks for the feedback. I'll add the additional tests this week (I found another issue with the node files that I'll be pushing up a fix for now). You make a good point about how involved the example is, and I didn't think about just dropping in the config even for just library usage. Let me play with that as well and see if I can get rid of the complicated gist. |
…advanced-node-manipulations
Feature/advanced node manipulations
Library usage was difficult since littlechef needed to be run within the kitchen working directory.
I added an option to specify the path to kitchen and to skip node data bag building. With this and assuming a repository with prebuilt berks path, littlechef can be invoked without knife being installed on the system.
I also updated the library usage example. It contained an old way to invoke the deploy_chef function, and I added a link to a more detailed working example of invoking littlechef (since you have to specify many env variables to get it to run).
Tested fix and library invocations manually. Added setting of the kitchen_path and current test suite passes. If you have advice for setting up additional test cases I would be much obliged.