CliQr is now part of Cisco Learn More About Cisco

Model An Application Using Puppet or Chef

Overview

CloudCenter enables enterprises to integrate with Puppet and Chef, as a client agent that is installed on every application VM using CloudCenter, and automates the configuration management process. This automation helps enterprises by not requiring admins to manually configure the environment each time a new VM is launched by combining the VM provisioning and the Service Lifecycle Actions to provide seamless end-to-end integration at deployment time.

Out-of-Box Service Additions

Puppet and Chef are available as out-of-box Services on the CloudCenter platform.

When modeling an application, drag and drop the Puppet and Chef services in the Topology Modeler and add app-specific parameters in the Properties > General Settings tab. See the following sections for service-specific details

Associate a Puppet Service

To associate a Puppet service with the application tier by following this process:

  1. Select a Puppet Master that is already registered as a repository (see Share Artifact Repositories for additional context).
  2. Provide the required information to setup the Puppet Agent – the role and repository path.
  3. Deploy the Puppet app – the service script leverages the function of Puppet Agent to configure the environment and deploy the application. Once deployed, the VM communicates with the selected Puppet Master to retrieve data. The Puppet Master compiles the manifests (see table above) into system-specific catalogs per the agent requests, and sends the catalogs to the agent to configure the environment.

Associate a Chef Service

To associate a Chef service with the application tier by following this process:

  1. Select a Chef Server to communicate with the Chef Client.
  2. Provide the required information to setup the Chef Server – the recipe (see table above) and environment name.
  3. Deploy the Chef app – the service script invokes the Chef Client and registers itself to the selected Chef Server. After receiving the recipe, the client configures the environment.

Puppet Deployment Process

  1. Set up a Puppet Master, install and configure the Puppet Master open source version, and host the Puppet modules (for example, Apache, MySQL, Tomcat). Refer to the Puppet website for detailed information.
  2. Create Puppet profiles and roles and setup the configuration. Refer to the Puppet website for detailed information.
  3. Specify the Certname pattern on the Puppet Master to allow certified access from the Puppet Agent. Refer to the Puppet website for detailed information.
    1. Hostname:  The hostname of the Puppet Master.
    2. Certname Suffix: The suffix used by the CloudCenter Puppet service to generate the Certname for authentication to the Puppet Master.
  4. Create and Share an Artifact Repository for Puppet and include the metadata of the Puppet Master.
  5. Deploy the Application to invoke the Puppet Agent and set up the app.

Chef Deployment Process

  1. Set up a Chef Server and host Chef cookbooks and recipes (for example, Apache or Tomcat). Refer to the Chef website for detailed information.
  2. Create and Share an Artifact Repository for Chef and include the metadata of the Chef Server. You will need to download the validation key from the Chef Server Web page. If the Chef server is configured with SSL, specify those credentials in the Chef repository.
    1. Chef User Key: The private key used to manage the Chef client.
    2. Chef Validation key: Used to authenticate the Chef Client when it communicates with the Chef Server for the first time.
    3. Trusted Certificate: The SSL certificate of the Chef Server used to authenticate the Chef Client to the Chef Server.
  3. Model an Application using a Chef tier. Configure the Chef Server and recipe that will be used on the Chef Client.
  4. Deploy the Application  to invoke the Chef Client and set up the app.

 

  • No labels