2d60fd102c8f3ed61d938164cc4d86017efbb023
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedSingleCompute / diffNestedFilesWithSameComputeType / out / MainServiceTemplate.yaml
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     pcm_flavor_name:
12       label: PCRF CM flavor name
13       hidden: false
14       immutable: false
15       type: string
16       description: flavor name of PCRF CM instance
17       default: cps
18     availabilityzone_name:
19       label: availabilityzone name
20       hidden: false
21       immutable: false
22       type: string
23       description: availabilityzone name
24       default: nova
25     oam_net_gw:
26       label: CPS network gateway
27       hidden: false
28       immutable: false
29       type: string
30       description: CPS network gateway
31     pcm_server_names:
32       label: PCRF CM server names
33       hidden: false
34       immutable: false
35       type: list
36       description: name of the PCRF CM instance
37       default:
38       - ZRDM1PCRF01PCM001
39       entry_schema:
40         type: string
41     pcm_image_name:
42       label: PCRF CM image name
43       hidden: false
44       immutable: false
45       type: string
46       description: PCRF CM image name
47       default: rhel2
48     net_name:
49       hidden: false
50       immutable: false
51       type: string
52     compute_image_name:
53       hidden: false
54       immutable: false
55       type: string
56   node_templates:
57     abstract_pcm_server_1_0:
58       type: org.openecomp.resource.abstract.nodes.heat.pcm_server_1
59       directives:
60       - substitutable
61       properties:
62         pcm_flavor_name:
63           get_input: pcm_flavor_name
64         service_template_filter:
65           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
66         availabilityzone_name:
67           get_input: availabilityzone_name
68         pcm_image_name:
69           get_input: pcm_image_name
70         pcm_server_name:
71           get_input:
72           - pcm_server_names
73           - 0
74     abstract_pcm_server_0:
75       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
76       directives:
77       - substitutable
78       properties:
79         pcm_flavor_name:
80           get_input: pcm_flavor_name
81         service_template_filter:
82           substitute_service_template: nested-pcm_v0.2ServiceTemplate.yaml
83         availabilityzone_name:
84           get_input: availabilityzone_name
85         pcm_image_name:
86           get_input: pcm_image_name
87         pcm_server_name:
88           get_input:
89           - pcm_server_names
90           - 0
91     compute_port_0:
92       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
93       properties:
94         ip_requirements:
95         - ip_version: 4
96           ip_count_required:
97             is_required: false
98           floating_ip_count_required:
99             is_required: false
100         mac_requirements:
101           mac_count_required:
102             is_required: false
103         network:
104           get_input: net_name
105     abstract_compute:
106       type: org.openecomp.resource.abstract.nodes.compute
107       directives:
108       - substitutable
109       properties:
110         compute_compute_user_data_format:
111         - get_attribute:
112           - abstract_pcm_server_1_0
113           - oam_net_gw
114         vm_image_name:
115           get_input: compute_image_name
116         compute_compute_name:
117         - compute_name: null
118         vm_flavor_name:
119           compute_flavor_name: null
120         compute_compute_config_drive:
121         - get_attribute:
122           - compute_port_0
123           - tenant_id
124           - port_security_enabled
125           - device_id
126           - qos_policy
127           - allowed_address_pairs
128           - show
129           - device_owner
130           - network
131           - security_groups
132           - fixed_ips
133           - mac_address
134           - admin_state_up
135           - name
136           - subnets
137           - status
138         service_template_filter:
139           substitute_service_template: Nested_computeServiceTemplate.yaml
140           count: 1
141         index_value:
142           get_property:
143           - SELF
144           - service_template_filter
145           - index_value
146   groups:
147     hot-nimbus-pcm_v0.4_group:
148       type: org.openecomp.groups.heat.HeatStack
149       properties:
150         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
151         description: heat template that creates PCRF Cluman stack
152       members:
153       - compute_port_0
154       - abstract_compute
155       - abstract_pcm_server_0
156       - abstract_pcm_server_1_0