Create a custom Cloud provider

You can customize Cloud Management Providers by defining keys for the extension points.

About this task

Provider information is stored in the Cloud Management Provider table [virtualization_provider]. To customize a provider, copy the default scripts, customize the copies, and select them in the appropriate fields for the Cloud Management Provider form as described:

Procedure

  1. Navigate to Cloud Management > Cloud Management Providers.
  2. Click the Cloud Management Provider and then fill in the form. Provide customized extension keys as appropriate.
    Table 1. Cloud Management Provider form
    Field Description
    Name Unique and descriptive name of the virtualization provider.
    Error Notification Ext Key The extension key to generate a notification email message and subject. Provide values for the workflow.scratchpad.notification.message and workflow.scartchpad.notification.subject. The default for VMware is VMWSetErrorNotification; the default for Amazon EC2 is EC2SetErrorNotification.
    Success Notification Ext Key The extension key to generate a notification email message and subject. Provide values for workflow.scratchpad.notification.message and workflow.scartchpad.notification.subject. The default for VMware is VMWSetSuccessNotification; the default for Amazon EC2 is EC2SetSuccessNotification.
    Before Scheduled Job Ext Key The extension key to allow users do some work before scheduled VM provisioning. For example, the user can modify VM parameters that are then passed to the VM Creation workflow by the change variable workflow.scratchpad.wf_variables. The default for VMware is VMWBeforeSchedule; the default for Amazon EC2 is EC2BeforeSchedule.
    After Scheduled Job Ext Key The extension key to run after a scheduled job. The default for VMware is VMWAfterSchedule; the default for Amazon EC2 is EC2AfterSchedule.
    Post Provision Ext Key The extension key to run after the VM is provisioned. For example, you can set up CMDB information in the script. The provision result can be accessed by the workflow.scratchpad.provisionResult variable. The default for VMware is VMWPostProvision; the default for Amazon EC2 is EC2PostProvision.
    Before Placement Ext Key The extension key to set up placement workflow.
    Placement Ext Key The extension key to run when the catalog item's task automation mode is set to Semi automatic or Fully automatic. This allows you to provide your own functions to select provisioning details, such as the ESXi host, datastore, network, and folder. The default for VMware is VMWPlacement; the default for Amazon EC2 is EC2Placement. For details on how to edit this script, see Editing the Placement Extension Key script
    Before Deprovision Ext Key The extension key to take action before the instance is terminated. There is no default extension key provided, so no action will be taken. Take any pre-cleanup action like backup before instance is terminated here.

    To use this feature, you must create a new extension point in the [vm_extension_point] table.

    After Deprovision Ext Key The Extension key to take action after instance is terminated. There is no default extension key provided. Take any post-cleanup action, like deleting snapshots, for the instance being terminated here.

    To use this feature, you must create a new extension point in the [vm_extension_point] table.

    Catalog item handler The Cloud Management Provider handler that defines how to order the item in the service catalog. The default for VMware is VMwareCatItemHandler; the default for Amazon EC2 is EC2CatItemHandler.
    Provision workflow The workflow that processes VM provisioning. The default for VMware is VMware VM Provision; the default for Amazon EC2 is Amazon EC2 VM Provision.
    Resource Type Resource type of the provider.
    CI Table CI type of the provider.
    Description Description of the Cloud Management Provider.
  3. Edit the Approver Groups and Operator Groups, if necessary.
  4. Click Submit.