Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

Appendix C. Creating Custom Buttons for Cloud Tenants

CloudForms also allows you to create custom buttons for cloud tenants. This is useful for providing shortcuts to functionalities and features frequently used by specific tenants.

Note

This capability is made possible through the Automate model. See Understanding the Automate Model from the Scripting Actions in CloudForms guide for more details.

The following subsections summarize the two main steps for creating a custom button for cloud tenants.

C.1. Creating a Custom Button Group

A button group is a label for a collection of buttons under an object type. To create a button group:

  1. Navigate to AutomateCustomization.
  2. Click the Buttons accordion.
  3. From the Object Types tree, select the type of object you want to create the button group for.

    Note

    When creating a button group for OpenStack tenants, select Cloud Tenant as your object type.

  4. Click image (Configuration), image (Add a new Button Group).
  5. Type in a Button Group Text and Button Group Hover Text, and select the Button Group Image you want to use.
  6. If custom buttons have already been created, assign them to the button group. If not, see Section C.2, “Creating a Custom Button” to create custom buttons.
  7. Click Add.

The button group will show in the Cloud Tenant object type. When it does, create a custom button for any tenant within the OpenStack Cloud (see Section C.2, “Creating a Custom Button”).

C.2. Creating a Custom Button

  1. Navigate to AutomateCustomization.
  2. Click the Buttons accordion.
  3. From the Object Types tree, select the type of object you want to create the button for.

    Note

    When creating a button for OpenStack tenants, select Cloud Tenant as your object type.

  4. Click Unassigned Buttons.
  5. Click image (Configuration), then image (Add a new Button).

    Note

    If image (Add a new Button) is not available, that means you have not created a button group for that object. To continue, create a button group first. See Section C.1, “Creating a Custom Button Group”

  6. In Action, type in a Button Text and Button Hover Text, and select the Button Image you want to use.
  7. Select a Dialog if applicable.
  8. In Object Details, select Request from the /System/Process/ dropdown. By default, the message is create. Do not change it.
  9. Type in a Request name for the /System/Process/Request instance.
  10. Type in the Attribute/Value Pairs fields if applicable.
  11. Under Visibility, select which Account Roles you want to have access to this button.
  12. Click Add when you have confirmed that the button accomplishes the task you want.

The button will show in the object type you added the button to. See Invoking Automate from the Scripting Actions in CloudForms guide for more in-depth coverage.