[
https://issues.apache.org/jira/browse/JCLOUDS-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13657561#comment-13657561
]
Ignasi Barrera commented on JCLOUDS-3:
--------------------------------------
Here is an example usage:
// Create an environment for the nodes in the jclouds group
String group = "jclouds-chef";
Environment env = new Environment(group, "Jclouds environment");
api.createEnvironment(env);
// Build the bootstrap configuration
List<String> runlist = new RunListBuilder().addRecipe("apache2").build();
BootstrapConfig bootstrapConfig = BootstrapConfig.builder()
.environment(group)
.runList(runlist)
.build();
// Store the bootstrap configuration in the bootstrap data bag to make it
possible to reuse it later
// This step can be omitted if the data bag already exists with the appropriate
configuration
chefService.updateBootstrapConfigForGroup(group, bootstrapConfig);
// Create the bootstrap script for the node, and launch!
Statement bootstrap = chefService.createBootstrapScriptForGroup(group);
computeService.createNodesInGroup(group, 1, runScript(bootstrap));
> Jcloud support for custom chef environment.
> -------------------------------------------
>
> Key: JCLOUDS-3
> URL: https://issues.apache.org/jira/browse/JCLOUDS-3
> Project: jclouds
> Issue Type: New Feature
> Components: jclouds-chef
> Affects Versions: 1.6.0
> Reporter: Jayant Kaushal
> Assignee: Ignasi Barrera
> Fix For: 1.7.0
>
> Attachments: JCLOUDS-3.patch
>
>
> Jcloud support for custom chef environment.
> Trying to bootstrap a node in a different environment that _default.
> Is there a support for that
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira