blob: 2ecf3c4a22d679d6af9d25d7529bc5e0d06dab22 [file] [log] [blame]
Vasyl Saienkocab3a902018-07-12 13:17:17 +03001
2[vmware]
3#
4# Related options:
5# Following options must be set in order to launch VMware-based
6# virtual machines.
7#
8# * compute_driver: Must use vmwareapi.VMwareVCDriver.
9# * vmware.host_username
10# * vmware.host_password
11# * vmware.cluster_name
12
13#
14# From nova.conf
15#
16
17#
18# This option specifies the physical ethernet adapter name for VLAN
19# networking.
20#
21# Set the vlan_interface configuration option to match the ESX host
22# interface that handles VLAN-tagged VM traffic.
23#
24# Possible values:
25#
26# * Any valid string representing VLAN interface name
27# (string value)
28#vlan_interface = vmnic0
29{%- if _data.vlan_interface is defined %}
30vlan_interface = {{ _data.vlan_interface }}
31{%- endif %}
32
33#
34# This option should be configured only when using the NSX-MH Neutron
35# plugin. This is the name of the integration bridge on the ESXi server
36# or host. This should not be set for any other Neutron plugin. Hence
37# the default value is not set.
38#
39# Possible values:
40#
41# * Any valid string representing the name of the integration bridge
42# (string value)
43#integration_bridge = <None>
44{%- if _data.integration_bridge is defined %}
45integration_bridge = {{ _data.integration_bridge }}
46{%- endif %}
47
48#
49# Set this value if affected by an increased network latency causing
50# repeated characters when typing in a remote console.
51# (integer value)
52# Minimum value: 0
53#console_delay_seconds = <None>
54{%- if _data.console_delay_seconds is defined %}
55console_delay_seconds = {{ _data.console_delay_seconds }}
56{%- endif %}
57
58#
59# Identifies the remote system where the serial port traffic will
60# be sent.
61#
62# This option adds a virtual serial port which sends console output to
63# a configurable service URI. At the service URI address there will be
64# virtual serial port concentrator that will collect console logs.
65# If this is not set, no serial ports will be added to the created VMs.
66#
67# Possible values:
68#
69# * Any valid URI
70# (string value)
71#serial_port_service_uri = <None>
72{%- if _data.serial_port_service_uri is defined %}
73serial_port_service_uri = {{ _data.serial_port_service_uri }}
74{%- endif %}
75
76#
77# Identifies a proxy service that provides network access to the
78# serial_port_service_uri.
79#
80# Possible values:
81#
82# * Any valid URI (The scheme is 'telnet' or 'telnets'.)
83#
84# Related options:
85# This option is ignored if serial_port_service_uri is not specified.
86# * serial_port_service_uri
87# (uri value)
88#serial_port_proxy_uri = <None>
89{%- if _data.serial_port_proxy_uri is defined %}
90serial_port_proxy_uri = {{ _data.serial_port_proxy_uri }}
91{%- endif %}
92
93#
94# Hostname or IP address for connection to VMware vCenter host. (unknown value)
95#host_ip = <None>
96host_ip = {{ _data.host_ip }}
97
98# Port for connection to VMware vCenter host. (port value)
99# Minimum value: 0
100# Maximum value: 65535
101#host_port = 443
102{%- if _data.host_port is defined %}
103host_port = {{ _data.host_port }}
104{%- endif %}
105
106# Username for connection to VMware vCenter host. (string value)
107#host_username = <None>
108host_username = {{ _data.host_username }}
109
110# Password for connection to VMware vCenter host. (string value)
111#host_password = <None>
112host_password = {{ _data.host_password }}
113
114#
115# Specifies the CA bundle file to be used in verifying the vCenter
116# server certificate.
117# (string value)
118#ca_file = <None>
119{%- if _data.cacert_file is defined %}
120ca_file = {{ _data.cacert_file }}
121{%- endif %}
122
123#
124# If true, the vCenter server certificate is not verified. If false,
125# then the default CA truststore is used for verification.
126#
127# Related options:
128# * ca_file: This option is ignored if "ca_file" is set.
129# (boolean value)
130#insecure = false
131{%- if _data.insecure is defined %}
132insecure = {{ _data.insecure }}
133{%- endif %}
134
135# Name of a VMware Cluster ComputeResource. (string value)
136#cluster_name = <None>
137cluster_name = {{ _data.cluster_name }}
138
139#
140# Regular expression pattern to match the name of datastore.
141#
142# The datastore_regex setting specifies the datastores to use with
143# Compute. For example, datastore_regex="nas.*" selects all the data
144# stores that have a name starting with "nas".
145#
146# NOTE: If no regex is given, it just picks the datastore with the
147# most freespace.
148#
149# Possible values:
150#
151# * Any matching regular expression to a datastore must be given
152# (string value)
153#datastore_regex = <None>
154{%- if _data.datastore_regex is defined %}
155datastore_regex = {{ _data.datastore_regex }}
156{%- endif %}
157
158#
159# Time interval in seconds to poll remote tasks invoked on
160# VMware VC server.
161# (floating point value)
162#task_poll_interval = 0.5
163{%- if _data.task_poll_interval is defined %}
164task_poll_interval = {{ _data.task_poll_interval }}
165{%- endif %}
166
167
168#
169# Number of times VMware vCenter server API must be retried on connection
170# failures, e.g. socket error, etc.
171# (integer value)
172# Minimum value: 0
173#api_retry_count = 10
174{%- if _data.api_retry_count is defined %}
175api_retry_count = {{ _data.api_retry_count }}
176{%- endif %}
177
178#
179# This option specifies VNC starting port.
180#
181# Every VM created by ESX host has an option of enabling VNC client
182# for remote connection. Above option 'vnc_port' helps you to set
183# default starting port for the VNC client.
184#
185# Possible values:
186#
187# * Any valid port number within 5900 -(5900 + vnc_port_total)
188#
189# Related options:
190# Below options should be set to enable VNC client.
191# * vnc.enabled = True
192# * vnc_port_total
193# (port value)
194# Minimum value: 0
195# Maximum value: 65535
196#vnc_port = 5900
197{%- if _data.vnc_port is defined %}
198vnc_port = {{ _data.vnc_port }}
199{%- endif %}
200
201#
202# Total number of VNC ports.
203# (integer value)
204# Minimum value: 0
205#vnc_port_total = 10000
206{%- if _data.vnc_port_total is defined %}
207vnc_port_total = {{ _data.vnc_port_total }}
208{%- endif %}
209
210#
211# This option enables/disables the use of linked clone.
212#
213# The ESX hypervisor requires a copy of the VMDK file in order to boot
214# up a virtual machine. The compute driver must download the VMDK via
215# HTTP from the OpenStack Image service to a datastore that is visible
216# to the hypervisor and cache it. Subsequent virtual machines that need
217# the VMDK use the cached version and don't have to copy the file again
218# from the OpenStack Image service.
219#
220# If set to false, even with a cached VMDK, there is still a copy
221# operation from the cache location to the hypervisor file directory
222# in the shared datastore. If set to true, the above copy operation
223# is avoided as it creates copy of the virtual machine that shares
224# virtual disks with its parent VM.
225# (boolean value)
226#use_linked_clone = true
227{%- if _data.use_linked_clone is defined %}
228use_linked_clone = {{ _data.use_linked_clone }}
229{%- endif %}
230
231#
232# This option enables or disables storage policy based placement
233# of instances.
234#
235# Related options:
236#
237# * pbm_default_policy
238# (boolean value)
239#pbm_enabled = false
240{%- if _data.pbm_enabled is defined %}
241pbm_enabled = {{ _data.pbm_enabled }}
242{%- endif %}
243
244#
245# This option specifies the PBM service WSDL file location URL.
246#
247# Setting this will disable storage policy based placement
248# of instances.
249#
250# Possible values:
251#
252# * Any valid file path
253# e.g file:///opt/SDK/spbm/wsdl/pbmService.wsdl
254# (string value)
255#pbm_wsdl_location = <None>
256{%- if _data.pbm_wsdl_location is defined %}
257pbm_wsdl_location = {{ _data.pbm_wsdl_location }}
258{%- endif %}
259
260#
261# This option specifies the default policy to be used.
262#
263# If pbm_enabled is set and there is no defined storage policy for the
264# specific request, then this policy will be used.
265#
266# Possible values:
267#
268# * Any valid storage policy such as VSAN default storage policy
269#
270# Related options:
271#
272# * pbm_enabled
273# (string value)
274#pbm_default_policy = <None>
275{%- if _data.pbm_default_policy is defined %}
276pbm_default_policy = {{ _data.pbm_default_policy }}
277{%- endif %}
278
279#
280# This option specifies the limit on the maximum number of objects to
281# return in a single result.
282#
283# A positive value will cause the operation to suspend the retrieval
284# when the count of objects reaches the specified limit. The server may
285# still limit the count to something less than the configured value.
286# Any remaining objects may be retrieved with additional requests.
287# (integer value)
288# Minimum value: 0
289#maximum_objects = 100
290{%- if _data.maximum_objects is defined %}
291maximum_objects = {{ _data.maximum_objects }}
292{%- endif %}
293
294#
295# This option adds a prefix to the folder where cached images are stored
296#
297# This is not the full path - just a folder prefix. This should only be
298# used when a datastore cache is shared between compute nodes.
299#
300# Note: This should only be used when the compute nodes are running on same
301# host or they have a shared file system.
302#
303# Possible values:
304#
305# * Any string representing the cache prefix to the folder
306# (string value)
307#cache_prefix = <None>
308{%- if _data.cache_prefix is defined %}
309cache_prefix = {{ _data.cache_prefix }}
310{%- endif %}