4cbb5163e9246b2d81a2e15aa99f9ad01dfd7a7a
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Test
4   template_author: OPENECOMP
5   template_version: 1.0.0
6 description: testing desc tosca service template
7 imports:
8 - myfile1:
9     file: path1/path2/file1.yaml
10 - myfile2:
11     file: path1/path2/file2.yaml
12 artifact_types:
13   one_artifact:
14     mime_type: application/java-archive
15     file_ext:
16     - yaml
17     - xml
18 interface_types:
19   inter_1:
20     description: test interface
21     start:
22       description: start operation
23 node_types:
24   compute_node_type:
25     derived_from: tosca.nodes.Root
26     version: 1.0.0
27     description: tosca compute test
28     properties:
29       cpu_num:
30         type: integer
31         description: Number of CPUs requested for a software node instance
32         required: true
33         default: 1
34         status: SUPPORTED
35         constraints:
36         - greater_or_equal: 5.0
37         - equal: 5
38         - greater_than: 6.02
39         - in_range:
40           - 0
41           - UNBOUNDED
42     attributes:
43       attDef1:
44         type: string
45         default: hi
46         status: SUPPORTED
47     requirements:
48     - re1:
49         capability: tosca.cap1
50         occurrences:
51         - 5
52         - 1
53     capabilities:
54       cap1:
55         type: tosca.cap
56         valid_source_types:
57         - node1
58         - node2
59         occurrences:
60         - 1
61         - UNBOUNDED
62     interfaces:
63       inter_1:
64         type: tosca.interfaces.node.lifecycle.Standard
65         start:
66           description: start operation
67           implementation: startWorkFlow.json
68 topology_template:
69   description: topologi template descroption
70   inputs:
71     inParam1:
72       type: string
73       description: desc
74       required: false
75       default: my default val
76       constraints:
77       - greater_than: 6
78       - greater_or_equal: 9
79       entry_schema:
80         type: tosca.myType
81   node_templates:
82     firstNodeTemplate:
83       type: nodeTypeRef
84       directives:
85       - selectable
86       - substitutable
87       properties:
88         prop2: '{ get_input: my_mysql_rootpw }'
89         prop1: abcd
90       attributes:
91         att2: '{ get_input: my_mysql_rootpw }'
92         att1: att1Val
93       requirements:
94       - req1:
95           capability: capA
96           node: nodeA
97           relationship: relationB
98           node_filter:
99             properties:
100               propName1:
101               - greater_or_equal: 9
102               propName2:
103               - min_length: 1
104               - max_length: 2
105           occurrences:
106           - 1
107           - 2
108       - req2:
109           capability: capA
110           node: nodeA
111           relationship: relationB
112   substitution_mappings:
113     node_type: myNodeType.node
114     capabilities:
115       database_endpoint:
116       - database
117       - database_endpoint