Product selector

Attention

The Dell Cloud Manager Blueprint function requires that you have pricing for the server products in the Dell Cloud Manager provisioning database server_product table for the server products you specify in the template productMappings section. Otherwise the create-blueprint-command will fail.

Currently the Dell Cloud Manager installation configures pricing for these public clouds: Amazon Web Service, Microsoft Azure, DigitalOcean, Google Compute Engine and Joyent.

You will need to be configure the server pricing for the other cloud providers. Refer to the Dell Cloud Manager Administrator’s Guide Server Pricing for more information on configuring the server pricing.

If you want to allow users to select the product size when launching servers in a stack from your blueprint you can define the Product selector structure statement in your template. The Product selector structure will generate a multi-input control that will appear on the Launch Blueprint page allowing the Dell Cloud Manager console user to select the product size to be used when launching server(s). The Product selector is connected to the AccountRegionSelector which allows the Dell Cloud Manager console user to select the Cloud and Region.

The Product selector is defined with a section name, a type and properties.

section name

Example: product_selector:

type

type: dcm.inputs.Product

properties

  • accountRegionSelector - This connects the AccountRegionSelector to the Product selector

    Example: accountRegionSelector: account_region_zone_selector

  • platform - Supported values: CENT_OS, DEBIAN, FEDORA_CORE, FREE_BSD, OPEN_BSD, RHEL, SOLARIS, SUSE, UBUNTU, UNKNOWN, UNIX, WINDOWS

    Example: platform: RHEL

    Note

    The platform is not exposed to the end user on the Dell Cloud Manager console.

  • architecture - Supported values: I32, I64

    Example: architecture: I64

    Note

    The architecture is not exposed to the end user on the Dell Cloud Manager console.

  • productMappings - This is a multi section definition which defines clouds, regions, machine images and products to be allowed for launching servers in the stack.

  • cloud - one or more clouds, each which contains:
  • region - one or more regions, each which contains:
  • image - a machine image to use to launch the server

Note

The image is not exposed to the end user on the Dell Cloud Manager console and not selectable.

  • products - an array of one or more cloud provider server products (instance types/sizes).

Example

"Amazon":                                                   # Amazon clouds
  "us-east-1":                                              # us-east-1 Region
    image: "ami-c4edc0d3"                                   # Machine image identifier for an Ubuntu image in this region
    products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region

  "us-west-1":                                              # us-west-1 Region
    image: "ami-e7035687"                                   # Machine image identifier for an Ubuntu image in this region
    products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region

  "us-west-2":                                              # us-west-2 Region
    image: "ami-578c2f37"                                   # Machine image identifier for an Ubuntu image in this region
    products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region

Note

Refer to Determine Cloud Name values for details on how to determine what cloud name values to specify.
Refer to Determine Cloud Region values for details on how to determine what cloud region values to specify.
Refer to Determine Cloud Region server product values for details on how to determine what cloud region server product values to specify.

Example

topology_template:

  inputs:                                                             # Define the inputs
    ################################################################################################################################################
    # This defines the Product selector which allows the user to select the server product size
    ################################################################################################################################################
    product_selector:                                                 # Define the product selector so the user can select the cloud and region
      type: dcm.inputs.Product                                        # Input type is dcm.inputs.Product
      properties:
        accountRegionSelector: account_region_zone_selector           # This connects the AccountRegionSelector to the Product selector
        platform: UNIX                                                # Virtual machine images are Linux
        architecture: I64                                             # 64 bit images
        productMappings:
          "Amazon":                                                   # Amazon cloud
            "us-east-1":                                              # us-east-1 Region
              image: "ami-c4edc0d3"                                   # Machine image identifier for an Ubuntu image in this region
              products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region
            "us-west-1":                                              # us-west-1 Region
              image: "ami-e7035687"                                   # Machine image identifier for an Ubuntu image in this region
              products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region
            "us-west-2":                                              # us-west-2 Region
              image: "ami-578c2f37"                                   # Machine image identifier for an Ubuntu image in this region
              products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region
            "eu-west-1":                                              # eu-west-1 Region
              image: "ami-e6a1f795"                                   # Machine image identifier for an Ubuntu image in this region
              products: ['t1.micro', 'm1.small', 'm1.medium']         # The virtual machine product sizes for this region

          "Azure":                                                    # Azure cloud
            "East US":                                                # East US Region
              # Machine image identifier in this region
              image: "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_4-LTS-amd64-server-20160406-en-us-30GB"
              products: ['Basic_A1', 'Medium', 'Standard_D1']         # The virtual machine product sizes for this region

          "DigitalOcean":                                             # DigitalOcean Cloud
            "nyc1":                                                   # New York City 1 region
              image: "18173769"                                       # Machine image identifier for an Ubuntu image in this region
              products: ['1gb', '4gb', '8gb']                         # The virtual machine product sizes for this region

          "Google":                                                   # Google cloud
            "us-east1":                                               # us-east1 Region
              image: "ubuntu-1404-trusty-v20160406"                   # Machine image identifier for an Ubuntu image in this region
              products: ['g1-small', 'n1-standard-4', 'n1-highmem-4'] # The virtual machine product sizes for this region
            "us-central1":                                            # us-central1 Region
              image: "ubuntu-1404-trusty-v20160406"                   # Machine image identifier for an Ubuntu image in this region
              products: ['g1-small', 'n1-standard-4', 'n1-highmem-4'] # The virtual machine product sizes for this region

          "Joyent":                                                   # Joyent cloud
            "us-east-1":                                              # us-east-1 Region
              image: "c864f104-624c-43d2-835e-b49a39709b6b"           # Machine image identifier for an Ubuntu image in this region
              products: ['Medium 4GB', 'Large 8GB']                   # The virtual machine product sizes for this region

Launch Blueprint page

../../../_images/launch_stack_inputs2.png