summaryrefslogtreecommitdiff
path: root/hot/software-config/elements/heat-config-chef/README.rst
blob: bc771775f61e98d183b687c8abdea42db6dbb1c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
A hook which invokes ``chef-client`` in local mode (chef zero) on the
provided configuration.

Inputs:
-------
Inputs are attribute overrides. In order to format them correctly for
consumption, you need to explicitly declare each top-level section as an
input of type ``Json`` in your config resource.

Additionally, there is a special input named ``environment`` of type
``String`` that you can use to specify which environment to use when
applying the config. You do not have to explicitly declare this input in
the config resource.

Outputs:
--------
If you need to capture specific outputs from your chef run, you should
specify the output name(s) as normal in your config. Then, your recipes
should write files to the directory specified by the ``heat_outputs_path``
environment variable. The file name should match the name of the output
you are trying to capture.

Options:
-------------

kitchen : optional
    A URL for a Git repository containing the desired recipes, roles,
    environments and other configuration.

    This will be cloned into ``kitchen_path`` for use by chef.

kitchen_path : default ``/var/lib/heat-config/heat-config-chef/kitchen``
    Instance-local path for the recipes, roles, environments, etc.

    If ``kitchen`` is not specified, this directory must be populated via
    user-data, another software config, or other "manual" method.