1f6dafb872f3d343a6490121dd85a31a5f57d8dd
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     pd_flavor_name:
12       label: PD flavor name
13       hidden: false
14       immutable: false
15       type: string
16       description: flavor name of PD instance
17       default: m3.xlarge
18     availabilityzone_name:
19       label: availabilityzone name
20       hidden: false
21       immutable: false
22       type: string
23       description: availabilityzone name
24       default: nova
25     pd01_cinder_volume_size:
26       label: volume size
27       hidden: false
28       immutable: false
29       type: string
30       description: volume size
31     pd_image_name:
32       label: image name
33       hidden: false
34       immutable: false
35       type: string
36       description: PD image name
37       default: MOG_BASE_8.0
38     packet_mirror_network_name:
39       label: packet mirror network name
40       hidden: false
41       immutable: false
42       type: string
43       description: name of the network
44     pd_server_names:
45       label: PD server names
46       hidden: false
47       immutable: false
48       type: list
49       description: name of the PD instance
50       default:
51       - ZRDM1MOGX01MPD001
52       - ZRDM1MOGX01MPD002
53       entry_schema:
54         type: string
55     pd01_volume_type:
56       label: volume type
57       hidden: false
58       immutable: false
59       type: string
60       description: volume type
61   node_templates:
62     packet_mirror_network:
63       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
64       properties:
65         network_name:
66           get_input: packet_mirror_network_name
67     pd01_volume:
68       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
69       properties:
70         volume_type:
71           get_input: pd01_volume_type
72         size: '(get_input : pd01_cinder_volume_size) * 1024'
73     abstract_pd_server:
74       type: org.openecomp.resource.abstract.nodes.pd_server
75       directives:
76       - substitutable
77       properties:
78         compute_pd_server_availability_zone:
79         - get_input: availabilityzone_name
80         - get_input: availabilityzone_name
81         compute_pd_server_name:
82         - get_input:
83           - pd_server_names
84           - 1
85         - get_input:
86           - pd_server_names
87           - 0
88         port_pd01_port_replacement_policy:
89         - AUTO_PORT_1
90         - AUTO_PORT_0
91         vm_flavor_name:
92           get_input: pd_flavor_name
93         port_pd01_port_mac_requirements:
94           mac_count_required:
95             is_required: false
96         vm_image_name:
97           get_input: pd_image_name
98         port_pd01_port_ip_requirements:
99         - ip_version: 4
100           ip_count_required:
101             is_required: false
102           floating_ip_count_required:
103             is_required: false
104         port_pd01_port_network:
105         - packet_mirror_network
106         compute_pd_server_user_data_format:
107         - RAW_SERVER_PD_2
108         - RAW_SERVER_PD_1
109         service_template_filter:
110           substitute_service_template: Nested_pd_serverServiceTemplate.yaml
111           count: 2
112         index_value:
113           get_property:
114           - SELF
115           - service_template_filter
116           - index_value
117       requirements:
118       - dependency_pd_server:
119           capability: tosca.capabilities.Node
120           node: packet_mirror_network
121           relationship: tosca.relationships.DependsOn
122       - dependency_server_pd_02_pd_server:
123           capability: tosca.capabilities.Node
124           node: packet_mirror_network
125           relationship: tosca.relationships.DependsOn
126       - link_pd_server_pd01_port:
127           capability: tosca.capabilities.network.Linkable
128           node: packet_mirror_network
129           relationship: tosca.relationships.network.LinksTo
130       - dependency_server_pd_01_pd_server:
131           capability: tosca.capabilities.Node
132           node: packet_mirror_network
133           relationship: tosca.relationships.DependsOn
134       - local_storage_pd_server:
135           capability: tosca.capabilities.Attachment
136           node: pd01_volume
137           relationship: pd02_volume_attachment
138       - local_storage_pd_server:
139           capability: tosca.capabilities.Attachment
140           node: pd01_volume
141           relationship: pd01_volume_attachment
142   relationship_templates:
143     pd01_volume_attachment:
144       type: org.openecomp.relationships.VolumeAttachesTo
145       properties:
146         volume_id: pd01_volume
147         instance_uuid: abstract_pd_server
148     pd02_volume_attachment:
149       type: org.openecomp.relationships.VolumeAttachesTo
150       properties:
151         volume_id: pd01_volume
152         instance_uuid: abstract_pd_server
153   groups:
154     hot-mog-0108-bs1271_group:
155       type: org.openecomp.groups.heat.HeatStack
156       properties:
157         heat_file: ../Artifacts/hot-mog-0108-bs1271.yml
158         description: heat template that creates MOG stack
159       members:
160       - packet_mirror_network
161       - pd01_volume
162       - abstract_pd_server