9da35df8a24ace43fc43615f507ea52b3f608bc3
[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 topology_template:
63   description: topologi template descroption
64   inputs:
65     inParam1:
66       type: string
67       description: desc
68       required: false
69       default: my default val
70       constraints:
71       - greater_than: 6
72       - greater_or_equal: 9
73       entry_schema:
74         type: tosca.myType
75   node_templates:
76     firstNodeTemplate:
77       type: nodeTypeRef
78       directives:
79       - selectable
80       - substitutable
81       properties:
82         prop2: '{ get_input: my_mysql_rootpw }'
83         prop1: abcd
84       attributes:
85         att2: '{ get_input: my_mysql_rootpw }'
86         att1: att1Val
87       requirements:
88       - req1:
89           capability: capA
90           node: nodeA
91           relationship: relationB
92           node_filter:
93             properties:
94               propName1:
95               - greater_or_equal: 9
96               propName2:
97               - min_length: 1
98               - max_length: 2
99           occurrences:
100           - 1
101           - 2
102       - req2:
103           capability: capA
104           node: nodeA
105           relationship: relationB
106   substitution_mappings:
107     node_type: myNodeType.node
108     capabilities:
109       database_endpoint:
110       - database
111       - database_endpoint