push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novatovolumeconnection / sharednestedconnection / inputfiles / nested.yml
1 heat_template_version: 2013-05-23
2
3 description: cmaui server template for vMMSC
4
5 parameters:
6   shared_vol1:
7     type: string
8     description: nova server id
9   cmaui_volume_param2:
10     type: string
11     description: nova server id
12   p1:
13     type: string
14     description: UID of OAM network
15   security_group_name:
16     type: comma_delimited_list
17     description: CMAUI1, CMAUI2 server names
18   cmaui_names:
19     type: comma_delimited_list
20     description: CMAUI1, CMAUI2 server names
21   cmaui_image:
22     type: string
23     description: Image for CMAUI server
24   availability_zone_0:
25     type: string
26     label: availabilityzone name
27     description: availabilityzone name
28   cmaui_flavor:
29     type: string
30     description: Flavor for CMAUI server
31   cmaui_oam_ips:
32     type: string
33 resources:
34
35   cmaui_port_1:
36     type: OS::Neutron::Port
37     properties:
38       network: { get_param: p1 }
39       fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
40       security_groups: [{get_param: security_group_name}]
41       replacement_policy: AUTO
42
43   cmaui_port_2:
44     type: OS::Neutron::Port
45     properties:
46       network: { get_param: p1 }
47       fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
48       security_groups: [{get_param: security_group_name}]
49       replacement_policy: AUTO
50
51   server_cmaui1:
52     type: OS::Nova::Server
53     properties:
54       name: { get_param: [cmaui_names, 0]}
55       image: { get_param: cmaui_image }
56       availability_zone: { get_param: availability_zone_0 }
57       flavor: { get_param: cmaui_flavor }
58       networks:
59       - port: { get_resource: cmaui_port_1 }
60
61   server_cmaui2:
62     type: OS::Nova::Server
63     properties:
64       name: { get_param: [cmaui_names, 0]}
65       image: { get_param: cmaui_image }
66       availability_zone: { get_param: availability_zone_0 }
67       flavor: { get_param: cmaui_flavor }
68       networks:
69       - port: { get_resource: cmaui_port_2 }
70
71   cmaui_volume_attachment1:
72      type: OS::Cinder::VolumeAttachment
73      properties:
74        volume_id: {get_param: shared_vol1}
75        instance_uuid: {get_resource: server_cmaui1}
76
77   cmaui_volume_attachment2:
78      type: OS::Cinder::VolumeAttachment
79      properties:
80        volume_id: {get_param: cmaui_volume_param2}
81        instance_uuid: {get_resource: server_cmaui1}
82
83   cmaui_volume_attachment3:
84      type: OS::Cinder::VolumeAttachment
85      properties:
86        volume_id: {get_param: shared_vol1}
87        instance_uuid: {get_resource: server_cmaui2}