Added helper method to generate only a run list

This commit is contained in:
Ignasi Barrera 2013-02-17 00:02:56 +01:00
parent 39ee5f1c1f
commit fabd13acd7
2 changed files with 22 additions and 1 deletions

View File

@ -83,11 +83,27 @@ public interface ChefService {
* {@link org.jclouds.chef.config.ChefProperties#CHEF_BOOTSTRAP_DATABAG
* databag} where run_list and other information are stored
* @deprecated use
* {@link ChefService#updateBootstrapConfigForGroup(Iterable, JsonBall, String)}
* {@link ChefService#updateBootstrapConfigForGroup(Iterable, String)
*/
@Deprecated
void updateRunListForGroup(Iterable<String> runList, String group);
/**
* assigns a run list to all nodes bootstrapped with a certain group
*
* @param runList
* list of recipes or roles to assign. syntax is
* {@code recipe[name]} and {@code role[name]}
*
* @param group
* corresponds to a configured
* {@link org.jclouds.chef.config.ChefProperties#CHEF_BOOTSTRAP_DATABAG
* databag} where run_list and other information are stored
* @see #makeChefApiBootstrapScriptForTag
*/
public void updateBootstrapConfigForGroup(Iterable<String> runList, String group);
/**
* assigns a run list to all nodes bootstrapped with a certain group, and
* configures the chef run to use the given json attributes.

View File

@ -203,6 +203,11 @@ public class BaseChefService implements ChefService {
@Override
@Deprecated
public void updateRunListForGroup(Iterable<String> runList, String group) {
updateBootstrapConfigForGroup(runList, group);
}
@Override
public void updateBootstrapConfigForGroup(Iterable<String> runList, String group) {
updateBootstrapConfigForGroup(runList, null, group);
}