[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novatovolumeconnection / innerHeatVolNestedMultiLevel / inputfiles / nested2.yml
1 heat_template_version: 2013-05-23
2
3 description: nested2
4
5 parameters:
6   p1:
7     type: string
8     description: UID of OAM network
9   p2:
10     type: string
11     description: UID of OAM network
12   security_group_name:
13     type: comma_delimited_list
14     description: CMAUI1, CMAUI2 server names
15   cmaui_names:
16     type: comma_delimited_list
17     description: CMAUI1, CMAUI2 server names
18   cmaui_image:
19     type: string
20     description: Image for CMAUI server
21   availability_zone_0:
22     type: string
23     label: availabilityzone name
24     description: availabilityzone name
25   cmaui_flavor:
26     type: string
27     description: Flavor for CMAUI server
28   cmaui_oam_ips:
29       type: string
30 resources:
31
32   cmaui_volume_attachment4:
33      type: OS::Cinder::VolumeAttachment
34      properties:
35        volume_id: {get_param: p1}
36        instance_uuid: {get_resource: server_cmaui3}
37
38   cmaui_volume_attachment5:
39      type: OS::Cinder::VolumeAttachment
40      properties:
41        volume_id: {get_param: p2}
42        instance_uuid: {get_resource: server_cmaui3}
43
44   cmaui_volume_attachment6:
45      type: OS::Cinder::VolumeAttachment
46      properties:
47        volume_id: {get_param: p1}
48        instance_uuid: {get_resource: server_cmaui4}
49
50   cmaui_port_3:
51     type: OS::Neutron::Port
52     properties:
53       network: { get_param: p1 }
54       fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
55       security_groups: [{get_param: security_group_name}]
56       replacement_policy: AUTO
57
58   cmaui_port_4:
59     type: OS::Neutron::Port
60     properties:
61       network: { get_param: p2 }
62       fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
63       security_groups: [{get_param: security_group_name}]
64       replacement_policy: AUTO
65
66   server_cmaui3:
67     type: OS::Nova::Server
68     properties:
69       name: { get_param: [cmaui_names, 0]}
70       image: { get_param: cmaui_image }
71       availability_zone: { get_param: availability_zone_0 }
72       flavor: { get_param: cmaui_flavor }
73       networks:
74       - port: { get_resource: cmaui_port_3 }
75
76   server_cmaui4:
77     type: OS::Nova::Server
78     properties:
79       name: { get_param: [cmaui_names, 0]}
80       image: { get_param: cmaui_image }
81       availability_zone: { get_param: availability_zone_0 }
82       flavor: { get_param: cmaui_flavor }
83       networks:
84       - port: { get_resource: cmaui_port_4 }
85
86   test_nested3Level:
87     type: OS::Heat::ResourceGroup
88     properties:
89       count: 3
90       resource_def:
91         type: nested3.yml
92         properties:
93           p1: { get_param: p1}
94           p2: { get_param: p1}
95           indx: "%index%"