90376b7205d8914991f5b43c243e58dfc8afb743
[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       implementation: start.sh
24 node_types:
25   compute_node_type:
26     derived_from: tosca.nodes.Root
27     version: 1.0.0
28     description: tosca compute test
29     properties:
30       cpu_num:
31         type: integer
32         description: Number of CPUs requested for a software node instance
33         required: true
34         default: 1
35         status: SUPPORTED
36         constraints:
37         - greater_or_equal: 5.0
38         - equal: 5
39         - greater_than: 6.02
40         - in_range:
41           - 0
42           - UNBOUNDED
43     attributes:
44       attDef1:
45         type: string
46         default: hi
47         status: SUPPORTED
48     requirements:
49     - re1:
50         capability: tosca.cap1
51         occurrences:
52         - 5
53         - 1
54     capabilities:
55       cap1:
56         type: tosca.cap
57         valid_source_types:
58         - node1
59         - node2
60         occurrences:
61         - 1
62         - UNBOUNDED
63 topology_template:
64   description: topologi template descroption
65   inputs:
66     inParam1:
67       type: string
68       description: desc
69       required: false
70       default: my default val
71       constraints:
72       - greater_than: 6
73       - greater_or_equal: 9
74       entry_schema:
75         type: tosca.myType
76   node_templates:
77     firstNodeTemplate:
78       type: nodeTypeRef
79       directives:
80       - selectable
81       - substitutable
82       properties:
83         prop2: '{ get_input: my_mysql_rootpw }'
84         prop1: abcd
85       attributes:
86         att2: '{ get_input: my_mysql_rootpw }'
87         att1: att1Val
88       requirements:
89       - req1:
90           capability: capA
91           node: nodeA
92           relationship: relationB
93           node_filter:
94             properties:
95               propName1:
96               - greater_or_equal: 9
97               propName2:
98               - min_length: 1
99               - max_length: 2
100           occurrences:
101           - 1
102           - 2
103       - req2:
104           capability: capA
105           node: nodeA
106           relationship: relationB
107   substitution_mappings:
108     node_type: myNodeType.node
109     capabilities:
110       database_endpoint:
111       - database
112       - database_endpoint