aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/resources/mock/services/heattotosca/fulltest/nestedSingleCompute/multipleReferencesToSameNestedFilesWithSameComputeType/in/module_8_vson_dcl.yaml
blob: da6bab10f58bcde8bd0cf3fef48a1ea99a06d74c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
heat_template_version: 2015-04-30
#################################
# Author: Dmitry Orzhehovsky
# Email:  dorzheho@cisco.com
#################################

description: The template deploys vSON Datacenter.

parameters:

  vnf_name:
    type: string
    label: VF name
    description: Unique name for this VF instance.

  vnf_id:
    type: string
    label: VF ID
    description: Unique ID for this VF instance.

  vf_module_name:
    type: string
    label: VF module name
    description: Unique name for this VF module instance.

  vf_module_id:
    type: string
    label: VF module ID
    description: Unique ID for this VF Module instance.

  oam_net_id:
    type: string
    label: OAM network ID
    description: The ID of the OAM network.

  oam_net_subnet_prefix_length:
    type: string
    label: OAM net subnet prefix length
    description: OAM network subnet prefix length.

  default_gateway:
    type: string
    label: Default gateway
    description: Default gateway.

  dns_servers:
    type: comma_delimited_list
    label: DNS servers
    description: List of DNS servers.

  ntp_servers:
    type: comma_delimited_list
    label: NTP servers 
    description: List of NTP servers.

  oam_net_security_group_id:
    type: string
    label: OAM network security group ID
    description: >
      The ID of Security group applied on the port
      bound to the vSON OAM network.

  availability_zone_0:
    type: string
    label: Availability zone 0
    description: First availability zone.
    
  availability_zone_1:
    type: string
    label: Availability zone 1
    description: Second availability zone.

  vson_leader_server_group_id:
    type: string
    label: vSON Cluster leader server group policy
    description: >
      Tells what policy should be applied to the ServerGroup.
      Affinity policy will force instances to share the same hypervisor.
      Anti-affinity will force instances to run in different hypervisors.
      The group intended for vSON DC leaders.  

  vson_dcl_volume_id_0:
    type: string
    label: vSON DC Leader Volume ID 0
    description: Volume ID of the first vSON DC leader.

  vson_dcl_volume_id_1:
    type: string
    label: vSON DC Leader Volume ID 1
    description: Volume ID of the second vSON DC leader.

  vson_dcl_volume_id_2:
    type: string
    label: vSON DC Leader Volume ID 2
    description: Volume ID of the third vSON DC leader.

  vson_dcl_name_0:
    type: string
    label: First vSON DC leader name
    description: Unique name to be issued to the first vSON DC leader.

  vson_dcl_name_1:
    type: string
    label: Second vSON DC leader name
    description: Unique name to be issued to the second vSON DC leader.

  vson_dcl_name_2:
    type: string
    label: Third vSON DC leader name
    description: Unique name to be issued to the third vSON DC leader.

  vson_dcl_image_name:
    type: string
    label: vSON base VM image name
    description: VM Image name the vSON DC leader instance will be created from.

  vson_dcl_flavor_name:
    type: string
    label: Flavor name
    description: The ID or name of the flavor to boot onto.

  vson_dcl_oam_net_ip_0:
    type: string
    label: vSON DC leader OAM network IP address 0
    description: Fixed IP assignment for the first vSON DC leader instance on the OAM network.

  vson_dcl_oam_net_ip_1:
    type: string
    label: vSON DC leader OAM network IP address 1
    description: Fixed IP assignment for the second vSON DC leader instance on the OAM network.

  vson_dcl_oam_net_ip_2:
    type: string
    label: vSON DC leader OAM network IP address 2
    description: Fixed IP assignment for the third vSON DC leader instance on the OAM network.

  vson_dc_unit:
    type: string
    label: vSON Datacenter name
    description: vSON Datacenter name.

  vson_clm_0_oam_net_ip_0:
    type: string
    label: vSON Cluster Manager 0 OAM net IP
    description: IP of the first vSON Cluster Management server.

  vson_join_cluster_auth_token:
    type: string
    label: vSON join cluster auth token
    description: >
      Authentication Token generated for the user permitted to add 
      a new vSON Datacenter. 

  swift_account_auth_token:
    type: string
    label: Swift account auth token
    description: >
      Swift account auth token.
      Example:  041a5187bb4641f9b89583e2539776b0

  number_of_servers:
     type: number
     label: Number of Servers
     description: Number of vSON DC leaders.
     constraints:
       - range: { min: 1, max: 3}

resources:

  vson_dcl_group:
    type: OS::Heat::ResourceGroup
    properties:
      count: {get_param: number_of_servers}
      resource_def:
        type: nested_vson_server_with_vol.yaml
        properties:
          instance_index: "%index%"
          vnf_name: {get_param: vnf_name}
          vnf_id: {get_param: vnf_id}
          vf_module_name: {get_param: vf_module_name}
          vf_module_id: {get_param: vf_module_id}
          vfc_role: dcl
          oam_net_id: {get_param: oam_net_id}
          oam_net_subnet_prefix_length: {get_param: oam_net_subnet_prefix_length}
          default_gateway: {get_param: default_gateway}
          dns_servers: {get_param: dns_servers}
          ntp_servers: {get_param: ntp_servers}
          oam_net_security_group_id: {get_param: oam_net_security_group_id}
          availability_zones: [{get_param: availability_zone_0}, {get_param: availability_zone_1}, {get_param: availability_zone_0}] 
          vson_server_group_id: {get_param: vson_leader_server_group_id}
          volume_ids: [{get_param: vson_dcl_volume_id_0}, {get_param: vson_dcl_volume_id_1}, {get_param: vson_dcl_volume_id_2}]
          vson_vm_names: [{get_param: vson_dcl_name_0}, {get_param: vson_dcl_name_1}, {get_param: vson_dcl_name_2}]
          oam_net_ips: [{get_param: vson_dcl_oam_net_ip_0}, {get_param: vson_dcl_oam_net_ip_1}, {get_param: vson_dcl_oam_net_ip_2}]
          vson_vm_image_name: {get_param: vson_dcl_image_name}
          vson_vm_flavor_name: {get_param: vson_dcl_flavor_name}
          vson_dc_unit: {get_param: vson_dc_unit}
          vson_clm_oam_net_ip: {get_param: vson_clm_0_oam_net_ip_0} 
          vson_join_cluster_auth_token: {get_param: vson_join_cluster_auth_token }
          swift_account_auth_token: {get_param: swift_account_auth_token}