e1a49a46c0e97ece1131ce5a0c633d52dcd8e540
[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       properties:
77         prop2: '{ get_input: my_mysql_rootpw }'
78         prop1: abcd
79       attributes:
80         att2: '{ get_input: my_mysql_rootpw }'
81         att1: att1Val
82       requirements:
83       - req1:
84           service_filter:
85             properties:
86                - name : [{get_input : inParam1}]
87       - req2:
88           service_filter:
89              tosca_id: {get_input : inParam1}
90   substitution_mappings:
91     node_type: myNodeType.node
92     capabilities:
93       database_endpoint:
94       - database
95       - database_endpoint