Class ChefProperties


  • public final class ChefProperties
    extends Object
    Configuration properties and constants used in Chef connections.
    • Field Detail

      • CHEF_BOOTSTRAP_DATABAG

        public static final String CHEF_BOOTSTRAP_DATABAG
        Databag that holds chef bootstrap hints, should be a json ball in the following format:

        {"tag":{"run_list":["recipe[apache2]"]}}

        See Also:
        Constant Field Values
      • CHEF_VALIDATOR_NAME

        public static final String CHEF_VALIDATOR_NAME
        The name of the validator client used to allow nodes to autoregister in the Chef server.

        This property must be set prior to running the ChefService#createBootstrapScriptForGroup(String) method.

        See Also:
        Constant Field Values
      • CHEF_VALIDATOR_CREDENTIAL

        public static final String CHEF_VALIDATOR_CREDENTIAL
        The credential of the validator client used to allow nodes to autoregister in the Chef server.

        This property must be set prior to running the ChefService#createBootstrapScriptForGroup(String) method.

        See Also:
        Constant Field Values
      • CHEF_VERSION

        public static final String CHEF_VERSION
        The version of the Chef gem to install when bootstrapping nodes.

        If this property is not set, by default the latest available Chef gem will be installed. The values can be fixed versions such as '0.10.8' or constrained values such as '>= 0.10.8'.

        This property must be set prior to running the ChefService#createBootstrapScriptForGroup(String) method.

        See Also:
        Constant Field Values
      • CHEF_UPDATE_GEM_SYSTEM

        public static final String CHEF_UPDATE_GEM_SYSTEM
        Boolean property. Default (false).

        When bootstrapping a node, forces a gem system update before installing the Chef gems.

        This property must be set prior to running the ChefService#createBootstrapScriptForGroup(String) method.

        See Also:
        Constant Field Values
      • CHEF_GEM_SYSTEM_VERSION

        public static final String CHEF_GEM_SYSTEM_VERSION
        To be used in conjunction with CHEF_UPDATE_GEM_SYSTEM. This property will force the version of RubyGems to update the system to.

        This property must be set prior to running the ChefService#createBootstrapScriptForGroup(String) method.

        See Also:
        Constant Field Values
      • CHEF_UPDATE_GEMS

        public static final String CHEF_UPDATE_GEMS
        Boolean property. Default (false).

        When bootstrapping a node, updates the existing gems before installing Chef.

        This property must be set prior to running the ChefService#createBootstrapScriptForGroup(String) method.

        See Also:
        Constant Field Values
      • CHEF_USE_OMNIBUS

        public static final String CHEF_USE_OMNIBUS
        Boolean property. Default (true).

        When bootstrapping a node, install the Chef client using the Omnibus installer.

        This property must be set prior to running the ChefService#createBootstrapScriptForGroup(String) method.

        See Also:
        Constant Field Values