Skip to content
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

Add org and user #85

Closed

Conversation

stephenlauck
Copy link
Contributor

I think an LWRP wrapping chef-server-ctl to create a minimum/default org and user is a super useful thing to have in this cookbook. I've replaced the manual calls to chef-server-ctl in the test cookbook post-install also.

@jtimberman
Copy link
Contributor

Thank you for the pull request, @stephenlauck. I thought I had addressed this already, but apparently not!

We actually already have resources that can manage Chef Server users and organizations in Cheffish. If this is not working, we need to fix the cheffish gem and get a release out, not add additional libraries/resources in cookbooks.

Also, this cookbook is a deployment implementation/wrapper cookbook, not a library/primitives cookbook. The distinction is important because we want to be able to depend on stable library cookbooks in metadata for implementation purposes.

This gist has an example recipe that can be used to do that:

https://gist.github.com/jtimberman/98d53f67e02240d35818

Note that it builds and installs the cheffish gem from a GitHub pull request's branch because there's a bug in the API endpoint used for the organization (the chef_user resource works fine with the released version, though).

@jtimberman jtimberman closed this Jun 11, 2015
@stephenlauck
Copy link
Contributor Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants