You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by "David Alves (Updated) (JIRA)" <ji...@apache.org> on 2011/10/22 23:04:32 UTC
[jira] [Updated] (WHIRR-49) Allow Whirr to use Chef for
configuration management
[ https://issues.apache.org/jira/browse/WHIRR-49?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Alves updated WHIRR-49:
-----------------------------
Attachment: WHIRR-49.patch
Ok Here we go!
Beyond the old approach (where the used would build recipes as new Recipe(ck,rcp) with could be added as statements) the service now supports doing everything by configuration.
The first instance template to use the "chef" role will trigger the installation of ruby and chef.
In the instance templates now the following usages are supported:
chef only: "1 chef" installs chef but runs no cookbooks (as was before)
chef with default cookbook: "1 chef:java" in this case chef is installed the default recipe in the provided cookbook is executed.
chef with particular recipe: "1 chef:java:sun" in this case a particular recipe is selected.
passing attributes through configuration: attributes were already supported in the Recipe bu they now can be specified by configuration as
cookbook_name.attribute_name=value
there is only a special case, when the attribute_name is "url" in this case the cookbook will be fetched from the url (vs using the default cookbooks)
Important Notes:
As recipes are long running scripts, using recipes outside of handlers required a change to ClusterController where a runScriptOnNodesMatching method that supported passing RunScriptOptions was introduced. I commented out the portion of the tests that used this as this change to be introduced (and in IMHO it should because it is useful) should probably go on another jira.
Finally I run unit tests and pretty extensive sys tests with the dry run module but I'm still missing itests.
Please review.
> Allow Whirr to use Chef for configuration management
> ----------------------------------------------------
>
> Key: WHIRR-49
> URL: https://issues.apache.org/jira/browse/WHIRR-49
> Project: Whirr
> Issue Type: New Feature
> Components: core
> Reporter: Jeff Hammerbacher
> Attachments: WHIRR-49-cc.patch, WHIRR-49-pom.patch, WHIRR-49.patch, WHIRR-49.patch, WHIRR-49.patch, WHIRR-49.patch, WHIRR-49.patch, WHIRR-49.patch, WHIRR-49.patch, WHIRR-49.patch, WHIRR-49.patch, WHIRR-49.patch
>
>
> As discussed in https://cwiki.apache.org/confluence/display/WHIRR/WhirrDesign, Whirr should be agnostic to the tool used to bring the images up to a state where they're ready to run the service.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira