PCF Tile Developer Guide v2.0

Configuring Disk and VM Type Defaults for On-Demand Service Tiles

Page last updated:

Note: Ops Manager 2.0 and later supports defining VM and disk type defaults and constraints.

This topic describes how tile authors can configure the dropdown menu items for VM types and persistent disk types in their tile.

On-demand service tiles have a configuration pane for each service plan. Operators use dropdown menus on the plan configuration pane to set the VM type and persistent disk type for each instance of that plan.

Ops Manager populates the menus with options based on the VM and disk options available on the current IaaS. Setting default values for VMs and disk types helps operators to choose the right resources for on-demand service broker (ODB) services when using on-demand plans.

VM and Persistent Disk Types

The property that defines the VM type options is vm_type_dropdown, and the menu options for disk type come from the disk_type_dropdown property. Tile authors do not specify the menu items in the product template.

Because VM and disk options differ by IaaS, Ops Manager uses a best-fit algorithm to match defaults to their closest equivalents on the IaaS, similar to how the Resource Config pane handles its VM Type and Persistent Disk Type options.

If a tile developer does not include a default value for a VM or disk resource, and then an operator configuring the tile does not choose a value from the dropdown, Ops Manager by default sets the resource to the smallest option available on the IaaS.

Set VM Type Defaults

For vm_type_dropdown the resources are ram, ephemeral_disk, and cpu. Tile authors can also apply constraints to any of these resources. Constraints can include min or power_of_two. For example:

  - name: example_vm_type
    type: vm_type_dropdown
    configurable: true
    - name: ram
      default: 1024
        min: 1024
        power_of_two: true
    - name: ephemeral_disk
      default: 1024
    - name: cpu
      default: 1

Set Persistent Disk Type Defaults

For disk_type_dropdown the resource is persistent_disk. Tile authors can also apply constraints to this resource. Constraints can include min or power_of_two. For example:

  - name: example_disk_type_dropdown
    type: disk_type_dropdown
    configurable: true
      - name: persistent_disk
        default: 2000
          min: 50
          power_of_two: false
Create a pull request or raise an issue on the source for this page in GitHub