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