[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 / fulltest / scalingInstances / oneComputeTypeOnePortNodeConnectedOut / in / hot-mog-0108-bs1271.yml
1 heat_template_version: 2013-05-23
2
3 description: heat template that creates MOG stack
4
5 parameters:
6   pd_server_names:
7     type: comma_delimited_list
8     label: PD server names
9     description: name of the PD instance
10   pd_image_name:
11     type: string
12     label: image name
13     description: PD image name
14   pd_flavor_name:
15     type: string
16     label: PD flavor name
17     description: flavor name of PD instance
18   availabilityzone_name:
19     type: string
20     label: availabilityzone name
21     description: availabilityzone name
22   packet_mirror_network_name:
23     type: string
24     label: packet mirror network name
25     description: name of the network
26   pd01_volume_type:
27     type: string
28     label: volume type
29     description: volume type
30   pd01_cinder_volume_size:
31     type: string
32     label: volume size
33     description: volume size
34
35 resources:
36   server_pd_01:
37     type: OS::Nova::Server
38     depends_on:
39       - packet_mirror_network
40     properties:
41       name: {get_param: [pd_server_names, 0]}
42       image: {get_param: pd_image_name}
43       flavor: {get_param: pd_flavor_name}
44       availability_zone: {get_param: availabilityzone_name}
45       networks:
46         - port: {get_resource: pd01_port_0}
47       user_data_format:  RAW_SERVER_PD_1
48   server_pd_02:
49     type: OS::Nova::Server
50     depends_on:
51       - packet_mirror_network
52     properties:
53       name: {get_param: [pd_server_names, 1]}
54       image: {get_param: pd_image_name}
55       flavor: {get_param: pd_flavor_name}
56       availability_zone: {get_param: availabilityzone_name}
57       networks:
58         - port: {get_resource: pd01_port_1}
59       user_data_format:  RAW_SERVER_PD_2
60   pd01_port_0:
61     type: OS::Neutron::Port
62     properties:
63       network: { get_resource: packet_mirror_network }
64       replacement_policy: AUTO_PORT_0
65   pd01_port_1:
66     type: OS::Neutron::Port
67     properties:
68       network: { get_resource: packet_mirror_network }
69       replacement_policy: AUTO_PORT_1
70   packet_mirror_network:
71     type: OS::Neutron::Net
72     properties:
73       name:
74         get_param: packet_mirror_network_name
75   pd01_volume:
76      type: OS::Cinder::Volume
77      properties:
78        size: {get_param: pd01_cinder_volume_size}
79        volume_type: {get_param: pd01_volume_type}
80   pd01_volume_attachment:
81      type: OS::Cinder::VolumeAttachment
82      properties:
83        volume_id: {get_resource: pd01_volume}
84        instance_uuid: {get_resource: server_pd_01}
85   pd02_volume_attachment:
86      type: OS::Cinder::VolumeAttachment
87      properties:
88        volume_id: {get_resource: pd01_volume}
89        instance_uuid: {get_resource: server_pd_02}