summaryrefslogtreecommitdiffstats
path: root/tosca2heat/heat-translator/translator/tests/data/test_tosca_flavor_and_image.yaml
blob: 32475894f33f48c65870991c0c166a66929f4114 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
tosca_definitions_version: tosca_simple_yaml_1_0

description: Template for deploying a server with custom properties for image, flavor and key_name.

node_types:
  tosca.nodes.nfv.VDU:
    derived_from: tosca.nodes.Compute
    properties:
      key_name:
        type: string
      image:
        type: string
      flavor:
        type: string

topology_template:
  inputs:
    key_name:
      type: string
      default: inputkey

  node_templates:
    my_server:
      type: tosca.nodes.nfv.VDU
      properties:
        flavor: m1.medium
        image: rhel-6.5-test-image
        key_name:
          get_input: key_name