Chef roles describe automation tasks to be run on a target system. You can apply roles to
images in a blueprint.
Note: These instructions are for using Chef when you provision environments on
cloud systems via OpenStack Heat. To use Chef in component processes, see the
Chef
automation plugin.
When you provision an environment that includes Chef roles, the virtual image contacts the
Chef server, downloads the associated roles and cookbooks, and runs the specified
automation.
-
In a blueprint, add one or more images.
-
From the Components palette drawer, drag one or more Chef roles to the
images.
Two resources are added to the blueprint source code for each Chef role. The
OS::Heat::SoftwareDeployment
resource type represents the deployment instance of
the role, and the
OS::Heat::SoftwareConfig
resource type represents the
configuration properties for the role, including its inputs and outputs.
Note: When you add a Chef
role to an image, the name property is removed from the image. When you use a
Chef role on an image, the engine generates a unique name for the image
automatically.
-
Specify the properties for the
OS::Heat::SoftwareDeployment
.
-
If you used Chef in versions of the blueprint designer before 6.2.1, upgraded to version 6.2.1
or later, and removed the validator key value from a URL that you host, you must modify your
blueprint.
- Optional:
Specify the Chef validator key.
When you provision environments from this blueprint, the Chef server applies the roles to
the environments. If any of the Chef roles fails, the provisioning process fails, in the same way as
a step in a process fails.