Jump to: navigation, search

Heat/glance image input constraint

< Heat
Revision as of 21:28, 23 May 2013 by Randall Burt (talk | contribs) (Created page with "Allow for template authors to declare a constraint on an input/Parameter that restricts input to match an available glance image. ===== Example ===== <pre> inputs: image: ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Allow for template authors to declare a constraint on an input/Parameter that restricts input to match an available glance image.

Example
inputs:
  image:
    description: WebServer image
    type: String
    default: F18-x86_64-cfntools
    # constraints validate input values prior to provisioning
    constraints:
    # validates that the value matches one of the available
    # glance images
    - type: glance.ImageChoice
      description: must be a valid image name

Depends on Parameter Constraints