[sdc] docker file fix for cassandra
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / vol_att / volume_file_parallel_to_main_file / inputfiles / hot_template.yml
1 heat_template_version: 2013-05-23
2
3 description: cmaui server template for vMMSC
4
5 parameters:
6   vnf_id:
7     type: string
8     description: Unique ID for this VNF instance
9     default: This_is_ths_MMSC-CMAUI_id
10   cmaui_names:
11     type: comma_delimited_list
12     description: CMAUI1, CMAUI2 server names
13   cmaui_image:
14     type: string
15     description: Image for CMAUI server
16   cmaui_flavor:
17     type: string
18     description: Flavor for CMAUI server
19   cmaui_cinder_volume_size:
20      type: number
21      label: CMAUI Cinder volume size
22      description: the size of the CMAUI Cinder volume
23   availability_zone_0:
24     type: string
25     label: availabilityzone name
26     description: availabilityzone name
27   oam_net_name:
28     type: string
29     description: UID of OAM network
30   oam_network_netmask:
31     type: string
32     label: oam network netmask
33     description: oam network gateway
34   oam_network_gateway:
35     type: string
36     label: oam network gateway
37     description: oam network gateway
38   external_dns:
39     type: string
40     label: dns server
41     description: dns server
42   external_ntp:
43     type: string
44     label: ntp server
45     description: ntp server
46   security_group_name:
47     type: string
48     label: security group name
49     description: the name of security group
50   timezone:
51     type: string
52     label: timezone
53     description: timezone
54   cmaui_oam_ips:
55     type: comma_delimited_list
56     label: CMAUI oam_net IP addresses
57     description: CMAUI oam_net IP addresses
58   CMAUI_volume_type:
59     type: string
60     label: CMAUI vm volume type
61     description: the name of the target volume backend
62   cmaui_volume:
63     type: string
64     label: CMAUI vm volume type
65     description: the name of the target volume backend
66
67 resources:
68
69   cmaui_port_0:
70     type: OS::Neutron::Port
71     properties:
72       network: { get_param: oam_net_name }
73       fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
74       security_groups: [{get_param: security_group_name}]
75       replacement_policy: AUTO
76
77   cmaui_volume_attachment:
78      type: OS::Cinder::VolumeAttachment
79      properties:
80        volume_id: {get_param: cmaui_volume}
81        instance_uuid: {get_resource: server_cmaui}
82
83   server_cmaui:
84     type: OS::Nova::Server
85     properties:
86       name: { get_param: [cmaui_names, 0]}
87       image: { get_param: cmaui_image }
88       availability_zone: { get_param: availability_zone_0 }
89       flavor: { get_param: cmaui_flavor }
90       networks:
91       - port: { get_resource: cmaui_port_0 }
92       metadata:
93         vnf_id: { get_param: vnf_id }
94       user_data:
95         str_replace:
96           template: |
97             cmaui.mgmt.ip=${cmaui.mgmt.ip}
98             cmaui.mgmt.netmask=${cmaui.mgmt.netmask}
99             cmaui.mgmt.gateway=${cmaui.mgmt.gateway}
100             cmaui.external.dns=${cmaui.external.dns}
101             cmaui.external.ntp=${cmaui.external.ntp}
102             cmaui.node=${cmaui.node}
103             cmaui.timezone=${cmaui.timezone}
104           params:
105             ${cmaui.mgmt.ip}: {get_param: [cmaui_oam_ips, 0]}
106             ${cmaui.mgmt.netmask}: {get_param: oam_network_netmask}
107             ${cmaui.mgmt.gateway}: {get_param: oam_network_gateway}
108             ${cmaui.external.dns}: {get_param: external_dns}
109             ${cmaui.external.ntp}: {get_param: external_ntp}
110             ${cmaui.node}: {get_param: [cmaui_names, 0]}
111             ${cmaui.timezone}: {get_param: timezone}
112       user_data_format: RAW