mirror of
https://github.com/apache/jclouds.git
synced 2025-02-06 18:19:03 +00:00
Added helper method to generate only a run list
This commit is contained in:
parent
39ee5f1c1f
commit
fabd13acd7
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user