push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novatovolumeconnection / nestednotconnected / inputfiles / main.yml
1 heat_template_version: 2013-05-23
2
3 description: >
4   Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
5
6 parameters:
7     cmaui_cinder_volume_size:
8        type: number
9        label: CMAUI Cinder volume size
10        description: the size of the CMAUI Cinder volume
11     CMAUI_volume_type:
12       type: string
13       label: CMAUI vm volume type
14       description: the name of the target volume backend
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     p1:
34       type: string
35       description: UID of OAM network
36
37 resources:
38   test_vol:
39      type: OS::Cinder::Volume
40      properties:
41        size: {get_param: cmaui_cinder_volume_size}
42        volume_type: {get_param: CMAUI_volume_type}
43   cmaui_port_1:
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   test_nested:
62     type: nested.yml
63     properties:
64       cmaui_volume_param: { get_resource: server_cmaui1}