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