6df071c570724e94a996f24cc519f315c571433d
[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 node_types:
19   compute_node_type:
20     derived_from: tosca.nodes.Root
21     version: 1.0.0
22     description: tosca compute test
23     properties:
24       cpu_num:
25         type: integer
26         description: Number of CPUs requested for a software node instance
27         required: true
28         default: 1
29         status: SUPPORTED
30         constraints:
31         - greater_or_equal: 5.0
32         - equal: 5
33         - greater_than: 6.02
34         - in_range:
35           - 0
36           - UNBOUNDED
37     attributes:
38       attDef1:
39         type: string
40         default: hi
41         status: SUPPORTED
42     requirements:
43     - re1:
44         capability: tosca.cap1
45         occurrences:
46         - 5
47         - 1
48     capabilities:
49       cap1:
50         type: tosca.cap
51         valid_source_types:
52         - node1
53         - node2
54         occurrences:
55         - 1
56         - UNBOUNDED
57 topology_template:
58   description: topologi template descroption
59   inputs:
60     inParam1:
61       type: string
62       description: desc
63       required: false
64       default: my default val
65       constraints:
66       - greater_than: 6
67       - greater_or_equal: 9
68       entry_schema:
69         type: tosca.myType
70   node_templates:
71     firstNodeTemplate:
72       type: nodeTypeRef
73       directives:
74       - selectable
75       - substitutable
76       interfaces:
77         inter_1:
78           type: test interface
79           start:
80             description: start operation
81             implementation: start.sh
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