3c3e27280df3d28f40bff5b867bd024e285885c6
[sdc/sdc-distribution-client.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >
4   Test template for deploying a server with custom properties for image,
5   flavor and key_name. This template provides an example of how to
6   override TOSCA normative type's  (e.g. Compute) properties. Here new
7   properties are injected in the tosca.nodes.myserver which derives from
8   tosca.nodes.Compute. Note that tosca.nodes.myserver can not be a name of
9   another normative type (e.g. tosca.nodes.WebServer or tosca.nodes.nfv.VDU)
10   because that will create conflict while resolving type definition by the
11   TOSCA Parser.
12
13 node_types:
14   tosca.nodes.myserver:
15     derived_from: tosca.nodes.Compute
16     properties:
17       key_name:
18         type: string
19       image:
20         type: string
21       flavor:
22         type: string
23
24 topology_template:
25   inputs:
26     key_name:
27       type: string
28       default: inputkey
29
30   node_templates:
31     my_server:
32       type: tosca.nodes.myserver
33       properties:
34         flavor: m1.medium
35         image: rhel-6.5-test-image
36         key_name:
37           get_input: key_name