[sdc] rebase update
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedSingleCompute / multipleReferencesToSameNestedFilesWithSameComputeType / in / module_0_vson_mgt.yaml
1 heat_template_version: 2015-04-30
2 #################################
3 # Author: Dmitry Orzhehovsky
4 # Email:  dorzheho@cisco.com
5 #################################
6
7 description: The template deploys vSON VFC of type MGT. 
8
9 parameters:
10
11   vnf_name:
12     type: string
13     label: VF name
14     description: Unique name for this VF instance.
15
16   vnf_id:
17     type: string
18     label: VF ID
19     description: Unique ID for this VF instance.
20
21   vf_module_name:
22     type: string
23     label: VF module name
24     description: Unique name for this VF module instance.
25
26   vf_module_id:
27     type: string
28     label: VF module ID
29     description: Unique ID for this VF Module instance.
30
31   oam_net_id:
32     type: string
33     label: OAM network ID
34     description: The ID of the OAM network.
35
36   oam_net_subnet_prefix_length:
37     type: string
38     label: OAM net subnet prefix length
39     description: OAM network subnet prefix length.
40
41   default_gateway:
42     type: string
43     label: Default gateway
44     description: Default gateway.
45
46   dns_servers:
47     type: comma_delimited_list
48     label: DNS servers
49     description: List of DNS servers.
50
51   ntp_servers:
52     type: comma_delimited_list
53     label: NTP servers 
54     description: List of NTP servers.
55
56   oam_net_security_group_id:
57     type: string
58     label: OAM network security group ID
59     description: >
60       The ID of Security group applied on the port
61       bound to the vSON OAM network.
62
63   availability_zone_0:
64     type: string
65     label: Availability zone 0
66     description: Availability zone.
67
68   vson_mgt_server_group_id:
69     type: string
70     label: vSON Management server group policy
71     description: >
72       Tells what policy should be applied to the ServerGroup.
73       Affinity policy will force instances to share the same hypervisor.
74       Anti-affinity will force instances to run in different hypervisors.
75       The group intended for vSON Management instances.  
76
77   vson_mgt_volume_id_0:
78     type: string
79     label: vSON Management Volume ID 0
80     description: Volume ID of the vSON Management server.
81
82   vson_mgt_name_0:
83     type: string
84     label: vSON Management instance name
85     description: Unique name to be issued to the vSON Management instance.
86
87   vson_mgt_flavor_name:
88     type: string
89     label: Flavor name
90     description: The ID or name of the flavor to boot onto.
91
92   vson_mgt_oam_net_ip_0:
93     type: string
94     label: vSON MGT OAM network IP address
95     description: Fixed IP assignment for the vSON MGT instance on the OAM network.
96
97   vson_clm_0_oam_net_ip_0:
98     type: string
99     label: vSON Cluster Manager 0 OAM net IP
100     description: IP of the first vSON Cluster Management server.
101
102   vson_dc_unit:
103     type: string
104     label: vSON Datacenter name
105     description: vSON Datacenter name.
106
107   swift_account_auth_token:
108     type: string
109     label: Swift account auth token
110     description: >
111       Swift account auth token.
112       Example:  041a5187bb4641f9b89583e2539776b0
113
114   number_of_servers:
115      type: number
116      label: Number of Servers
117      description: Number of vSON Management servers.
118      constraints:
119        - range: { min: 1, max: 1}
120
121 resources:
122
123   vson_mgt_group:
124     type: OS::Heat::ResourceGroup
125     properties:
126       count: {get_param: number_of_servers}
127       resource_def:
128         type: nested_vson_server_from_vol.yaml
129         properties:
130           instance_index: "%index%"
131           vnf_name: {get_param: vnf_name}
132           vnf_id: {get_param: vnf_id}
133           vf_module_name: {get_param: vf_module_name}
134           vf_module_id: {get_param: vf_module_id}
135           vfc_role: mgt
136           oam_net_id: {get_param: oam_net_id}
137           oam_net_subnet_prefix_length: {get_param: oam_net_subnet_prefix_length}
138           default_gateway: {get_param: default_gateway}
139           dns_servers: {get_param: dns_servers}
140           ntp_servers: {get_param: ntp_servers}
141           oam_net_security_group_id: {get_param: oam_net_security_group_id}
142           availability_zones: [{get_param: availability_zone_0}]
143           vson_server_group_id: {get_param: vson_mgt_server_group_id}
144           volume_ids: [{get_param: vson_mgt_volume_id_0}]
145           vson_vm_names: [{get_param: vson_mgt_name_0}]
146           oam_net_ips: [{get_param: vson_mgt_oam_net_ip_0}]
147           vson_vm_flavor_name: {get_param: vson_mgt_flavor_name}
148           vson_clm_oam_net_ip: {get_param: vson_clm_0_oam_net_ip_0}
149           vson_dc_unit: {get_param: vson_dc_unit}
150           swift_account_auth_token: {get_param: swift_account_auth_token}
151