Chef

You can use and leverage Chef in your templates to install, configure and maintain your applications and services. To do that you define Chef node(s) in the node_templates: section of your templates.

Note

To use Chef to configure your servers requires Chef to be integrated with Dell Cloud Manager. Refer to the Dell Cloud Manager Administrator’s Guide on Integrating Chef.

The Chef node is defined with a section name, a type and properties.

section name

Example: chef_apache:

type

type: dcm.nodes.Chef

properties

The following node properties are supported when defining a Chef node in a blueprint template:

  • chefServer: - This must be the exact name (case sensitive) of the Chef server account that is configured in Dell Cloud Manager.
Example: chefServer: "ACME Chef"
Example: environment: _default
Example: roles: ['ACME-Websever']
Example: recipes: ['apache2','apache2::mod_ssl']

Example

node_templates:
  chef_apache:                                             # Name of this node  
    type: dcm.nodes.Chef                                   # This is a Chef node
    properties:
        chefServer: "ACME Chef"                            # Exact name of the Chef Server Account defined to the Dell Cloud Manager Server
        environment: "_default"                            # Chef environment
        roles: ['ACME-Webserver']                          # Chef role which contains the cookbooks and recipes to install Apache
    requirements:
        - host: vm                                         # This requires (is "HostedOn") the Server defined in the template named vm
          relationship_type: tosca.relationships.HostedOn 

Note

Refer to the section in this document Samples using Chef to see examples of templates which use Chef to deploy services and applications on launched servers.