add_chef_cookbook

Adds a software library component and directives for a chef cookbook. If more than one software library storage location is configured, the default storage location is used. Use this verb once for each cookbook.

Format

emcli add_chef_cookbook 
      -name="component_name"
      -folder_name="swlib_folder_name"
      -filename="filename"
      -recipe_names="recipe_name11;recipe_name2;..."

Options

  • name

    The software library component name

  • recipe_names

    Cookbook recipe names. The recipe names are semi-colon separated. A directive will be created for each recipe.

  • folder_name

    The software library folder where the component and directives will be saved.

  • filename

    Name of the cookbook file. It must be in tar, gzip format. The cookbook name must be the "base" of the filename. For example, if the cookbook is named 'cookie', then the cookbook filename must be cookie.tar.gz.

Example

The following example creates a custom software library component and directives for a new chef cookbook. Entities are created in a sub folder of the MyComponents folder.

emcli add_chef_cookbook 
      -name=chef_component 
      -recipe_names="start;stop;install" 
      -folder_name="MyComponents folder"
      -filename="mysql.tar.gz"