push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novatovolumeconnection / multinotconnected / inputfiles / main.yml
1 heat_template_version: 2013-05-23
2
3 description: volume
4
5 parameters:
6   availability_zone_10:
7     type: string
8     label: availabilityzone name
9     description: availabilityzone name
10   cmaui_cinder_volume_size:
11     type: number
12     label: CMAUI Cinder volume size
13     description: the size of the CMAUI Cinder volume
14   CMAUI_volume_type:
15     type: string
16     label: CMAUI vm volume type
17     description: the name of the target volume backend
18   vnf_id:
19     type: string
20     label: CMAUI vm volume type
21     description: the name of the target volume backend
22   cmaui_names:
23     type: comma_delimited_list
24     description: CMAUI1, CMAUI2 server names
25   cmaui_image:
26     type: string
27     description: Image for CMAUI server
28   cmaui_flavor:
29     type: string
30     description: Flavor for CMAUI server
31   availability_zone_0:
32     type: string
33     label: availabilityzone name
34     description: availabilityzone name
35   oam_net_name:
36     type: string
37     description: UID of OAM network
38   oam_network_netmask:
39     type: string
40     label: oam network netmask
41     description: oam network gateway
42   oam_network_gateway:
43     type: string
44     label: oam network gateway
45     description: oam network gateway
46   external_dns:
47     type: string
48     label: dns server
49     description: dns server
50   external_ntp:
51     type: string
52     label: ntp server
53     description: ntp server
54   security_group_name:
55     type: string
56     label: security group name
57     description: the name of security group
58   timezone:
59     type: string
60     label: timezone
61     description: timezone
62   cmaui_oam_ips:
63     type: comma_delimited_list
64     label: CMAUI oam_net IP addresses
65     description: CMAUI oam_net IP addresses
66   cmaui_volume:
67     type: string
68     label: CMAUI vm volume type
69     description: the name of the target volume backend
70
71 resources:
72   cmaui_volume1:
73     type: OS::Cinder::Volume
74     properties:
75      size: {get_param: cmaui_cinder_volume_size}
76      volume_type: {get_param: CMAUI_volume_type}
77   cmaui_volume2:
78     type: OS::Cinder::Volume
79     properties:
80      size: {get_param: cmaui_cinder_volume_size}
81      volume_type: {get_param: CMAUI_volume_type}
82
83   server_cmaui21:
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_10 }
89       flavor: { get_param: cmaui_flavor }
90       networks:
91       - port: { get_resource: cmaui_port_11 }
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
113
114   cmaui_port_11:
115     type: OS::Neutron::Port
116     properties:
117       network: { get_param: oam_net_name }
118       fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
119       security_groups: [{get_param: security_group_name}]
120       replacement_policy: AUTO
121
122 outputs:
123     cmaui_volume_param1:
124       value: {get_resource: cmaui_volume1}
125     cmaui_volume_param2:
126       value: {get_resource: cmaui_volume2}
127     cmaui_volume_param3:
128       value: {get_resource: server_cmaui21}