org.apache.brooklyn.entity.chef.ChefConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brooklyn-software-base Show documentation
Show all versions of brooklyn-software-base Show documentation
Base classes for Brooklyn software process entities
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.brooklyn.entity.chef;
import org.apache.brooklyn.config.ConfigKey;
import org.apache.brooklyn.core.config.ConfigKeys;
import org.apache.brooklyn.core.config.MapConfigKey;
import org.apache.brooklyn.core.config.SetConfigKey;
import org.apache.brooklyn.util.core.flags.SetFromFlag;
import com.google.common.annotations.Beta;
/** {@link ConfigKey}s used to configure the chef driver */
@Beta
public interface ChefConfig {
public static final ConfigKey CHEF_COOKBOOK_PRIMARY_NAME = ConfigKeys.newStringConfigKey("brooklyn.chef.cookbook.primary.name",
"Namespace to use for passing data to Chef and for finding effectors");
@SetFromFlag("cookbook_urls")
public static final MapConfigKey CHEF_COOKBOOK_URLS = new MapConfigKey(String.class, "brooklyn.chef.cookbooksUrls");
@SetFromFlag("converge_twice")
public static final ConfigKey CHEF_RUN_CONVERGE_TWICE = ConfigKeys.newBooleanConfigKey("brooklyn.chef.converge.twice",
"Whether to run converge commands twice if the first one fails; needed in some contexts, e.g. when switching between chef-server and chef-solo mode", false);
@Deprecated /** @deprecated since 0.7.0 use #CHEF_LAUNCH_RUN_LIST */
public static final SetConfigKey CHEF_RUN_LIST = new SetConfigKey(String.class, "brooklyn.chef.runList");
/** typically set from spec, to customize the launch part of the start effector */
@SetFromFlag("launch_run_list")
public static final SetConfigKey CHEF_LAUNCH_RUN_LIST = new SetConfigKey(String.class, "brooklyn.chef.launch.runList");
/** typically set from spec, to customize the launch part of the start effector */
@SetFromFlag("launch_attributes")
public static final MapConfigKey