push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / novatovolumeconnection / sharednestednotconnected / 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     p1:
16       type: string
17       description: UID of OAM network
18     security_group_name:
19       type: comma_delimited_list
20       description: CMAUI1, CMAUI2 server names
21     cmaui_names:
22       type: comma_delimited_list
23       description: CMAUI1, CMAUI2 server names
24     cmaui_image:
25       type: string
26       description: Image for CMAUI server
27     availability_zone_0:
28       type: string
29       label: availabilityzone name
30       description: availabilityzone name
31     cmaui_flavor:
32       type: string
33       description: Flavor for CMAUI server
34     cmaui_oam_ips:
35       type: string
36
37 resources:
38   test_vol1:
39      type: OS::Cinder::Volume
40      properties:
41        size: {get_param: cmaui_cinder_volume_size}
42        volume_type: {get_param: CMAUI_volume_type}
43   test_vol2:
44      type: OS::Cinder::Volume
45      properties:
46        size: {get_param: cmaui_cinder_volume_size}
47        volume_type: {get_param: CMAUI_volume_type}
48   cmaui_port_0:
49     type: OS::Neutron::Port
50     properties:
51       network: { get_param: p1 }
52       fixed_ips: [{"ip_address": {get_param: [cmaui_oam_ips, 0]}}]
53       security_groups: [{get_param: security_group_name}]
54       replacement_policy: AUTO
55
56   server_cmaui:
57     type: OS::Nova::Server
58     properties:
59       name: { get_param: [cmaui_names, 0]}
60       image: { get_param: cmaui_image }
61       availability_zone: { get_param: availability_zone_0 }
62       flavor: { get_param: cmaui_flavor }
63       networks:
64       - port: { get_resource: cmaui_port_0 }
65
66 outputs:
67     shared_vol1:
68       value: {get_resource: server_cmaui}
69     shared_vol2:
70           value: {get_resource: test_vol2}