// Run the script in the nodes of the group
runScriptOnGroup(compute, login, groupName, bootstrap);
break;
case CHEF:
// Create the connection to the Chef server
ChefService chef =
initChefService(System.getProperty("chef.client"),
System.getProperty("chef.validator"));
// Build the runlist for the deployed nodes
System.out.println("Configuring node runlist in the Chef server...");
List<String> runlist =
new RunListBuilder().addRecipes(recipes.split(",")).build();
BootstrapConfig config = BootstrapConfig.builder().runList(runlist).build();
chef.updateBootstrapConfigForGroup(groupName, config);
Statement chefServerBootstrap = chef.createBootstrapScriptForGroup(groupName);
// Run the script in the nodes of the group
System.out.printf(">> installing [%s] on group %s as %s%n", recipes, groupName,
login.identity);
runScriptOnGroup(compute, login, groupName, chefServerBootstrap);