Statistics
| Branch: | Tag: | Revision:

one / share / etc / oned.conf @ 8c13490b

History | View | Annotate | Download (20 KB)

1
#*******************************************************************************
2
#                       OpenNebula Configuration file
3
#*******************************************************************************
4

    
5
#*******************************************************************************
6
# Daemon configuration attributes
7
#-------------------------------------------------------------------------------
8
#  MANAGER_TIMER: Time in seconds the core uses to evaluate periodical functions.
9
#  HOST_MONITORING_INTERVAL and VM_POLLING_INTERVAL can not have smaller values
10
#  than MANAGER_TIMER.
11
#
12
#  HOST_MONITORING_INTERVAL: Time in seconds between host monitorization.
13
#  HOST_PER_INTERVAL: Number of hosts monitored in each interval.
14
#  HOST_MONITORING_EXPIRATION_TIME: Time, in seconds, to expire monitoring
15
#  information. Use 0 to disable HOST monitoring recording.
16
#
17
#  VM_POLLING_INTERVAL: Time in seconds between virtual machine monitorization.
18
#  Use 0 to disable VM monitoring.
19
#  VM_PER_INTERVAL: Number of VMs monitored in each interval.
20
#  VM_MONITORING_EXPIRATION_TIME: Time, in seconds, to expire monitoring
21
#  information. Use 0 to disable VM monitoring recording.
22
#
23
#  SCRIPTS_REMOTE_DIR: Remote path to store the monitoring and VM management
24
#  scripts.
25
#
26
#  PORT: Port where oned will listen for xmlrpc calls.
27
#
28
#  DB: Configuration attributes for the database backend
29
#   backend : can be sqlite or mysql (default is sqlite)
30
#   server  : (mysql) host name or an IP address for the MySQL server
31
#   port    : (mysql) port for the connection to the server.
32
#                     If set to 0, the default port is used.
33
#   user    : (mysql) user's MySQL login ID
34
#   passwd  : (mysql) the password for user
35
#   db_name : (mysql) the database name
36
#
37
#  VNC_BASE_PORT: VNC ports for VMs can be automatically set to VNC_BASE_PORT +
38
#  VMID
39
#
40
#  DEBUG_LEVEL: 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
41
#*******************************************************************************
42

    
43
#MANAGER_TIMER = 30
44

    
45
HOST_MONITORING_INTERVAL         = 600
46
#HOST_PER_INTERVAL               = 15
47
#HOST_MONITORING_EXPIRATION_TIME = 86400
48

    
49
VM_POLLING_INTERVAL            = 600
50
#VM_PER_INTERVAL               = 5
51
#VM_MONITORING_EXPIRATION_TIME = 86400
52

    
53
SCRIPTS_REMOTE_DIR=/var/tmp/one
54

    
55
PORT = 2633
56

    
57
DB = [ backend = "sqlite" ]
58

    
59
# Sample configuration for MySQL
60
# DB = [ backend = "mysql",
61
#        server  = "localhost",
62
#        port    = 0,
63
#        user    = "oneadmin",
64
#        passwd  = "oneadmin",
65
#        db_name = "opennebula" ]
66

    
67
VNC_BASE_PORT = 5900
68

    
69
DEBUG_LEVEL = 3
70

    
71
#*******************************************************************************
72
# Physical Networks configuration
73
#*******************************************************************************
74
#  NETWORK_SIZE: Here you can define the default size for the virtual networks
75
#
76
#  MAC_PREFIX: Default MAC prefix to be used to create the auto-generated MAC
77
#  addresses is defined here (this can be overrided by the Virtual Network
78
#  template)
79
#*******************************************************************************
80

    
81
NETWORK_SIZE = 254
82

    
83
MAC_PREFIX   = "02:00"
84

    
85
#*******************************************************************************
86
# DataStore Configuration
87
#*******************************************************************************
88
#  DATASTORE_LOCATION: Path for Datastores in the hosts. It IS the same for all
89
#  the hosts in the cluster. DATASTORE_LOCATION IS ONLY FOR THE HOSTS AND *NOT*
90
#  THE FRONT-END. It defaults to /var/lib/one/datastores (or
91
#  $ONE_LOCATION/var/datastores in self-contained mode)
92
#
93
#  DEFAULT_IMAGE_TYPE: This can take values
94
#       OS        Image file holding an operating system
95
#       CDROM     Image file holding a CDROM
96
#       DATABLOCK Image file holding a datablock,
97
#                 always created as an empty block
98
#  DEFAULT_DEVICE_PREFIX: This can be set to
99
#       hd        IDE prefix
100
#       sd        SCSI
101
#       xvd       XEN Virtual Disk
102
#       vd        KVM virtual disk
103
#*******************************************************************************
104

    
105
#DATASTORE_LOCATION = /var/lib/one/datastores
106

    
107
DEFAULT_IMAGE_TYPE    = "OS"
108
DEFAULT_DEVICE_PREFIX = "hd"
109

    
110
#*******************************************************************************
111
# Information Driver Configuration
112
#*******************************************************************************
113
# You can add more information managers with different configurations but make
114
# sure it has different names.
115
#
116
#   name      : name for this information manager
117
#
118
#   executable: path of the information driver executable, can be an
119
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
120
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
121
#
122
#   arguments : for the driver executable, usually a probe configuration file,
123
#               can be an absolute path or relative to $ONE_LOCATION/etc (or
124
#               /etc/one/ if OpenNebula was installed in /)
125
#*******************************************************************************
126

    
127
#-------------------------------------------------------------------------------
128
#  KVM Information Driver Manager Configuration
129
#    -r number of retries when monitoring a host
130
#    -t number of threads, i.e. number of hosts monitored at the same time
131
#-------------------------------------------------------------------------------
132
IM_MAD = [
133
      name       = "im_kvm",
134
      executable = "one_im_ssh",
135
      arguments  = "-r 0 -t 15 kvm" ]
136
#-------------------------------------------------------------------------------
137

    
138
#-------------------------------------------------------------------------------
139
#  XEN Information Driver Manager Configuration
140
#    -r number of retries when monitoring a host
141
#    -t number of threads, i.e. number of hosts monitored at the same time
142
#-------------------------------------------------------------------------------
143
#IM_MAD = [
144
#    name       = "im_xen",
145
#    executable = "one_im_ssh",
146
#    arguments  = "xen" ]
147
#-------------------------------------------------------------------------------
148

    
149
#-------------------------------------------------------------------------------
150
#  VMware Information Driver Manager Configuration
151
#    -r number of retries when monitoring a host
152
#    -t number of threads, i.e. number of hosts monitored at the same time
153
#-------------------------------------------------------------------------------
154
#IM_MAD = [
155
#      name       = "im_vmware",
156
#      executable = "one_im_sh",
157
#      arguments  = "-c -t 15 -r 0 vmware" ]
158
#-------------------------------------------------------------------------------
159

    
160
#-------------------------------------------------------------------------------
161
#  EC2 Information Driver Manager Configuration
162
#-------------------------------------------------------------------------------
163
#IM_MAD = [
164
#      name       = "im_ec2",
165
#      executable = "one_im_ec2",
166
#      arguments  = "im_ec2/im_ec2.conf" ]
167
#-------------------------------------------------------------------------------
168

    
169
#-----------------------------------------------------------------------------
170
#  Ganglia Information Driver Manager Configuration
171
#-----------------------------------------------------------------------------
172
#IM_MAD = [
173
#      name       = "im_ganglia",
174
#      executable = "one_im_sh",
175
#      arguments  = "ganglia" ]
176
#-----------------------------------------------------------------------------
177

    
178
#-------------------------------------------------------------------------------
179
#  Dummy Information Driver Manager Configuration
180
#-------------------------------------------------------------------------------
181
#IM_MAD = [ name="im_dummy", executable="one_im_dummy"]
182
#-------------------------------------------------------------------------------
183

    
184
#*******************************************************************************
185
# Virtualization Driver Configuration
186
#*******************************************************************************
187
# You can add more virtualization managers with different configurations but
188
# make sure it has different names.
189
#
190
#   name      : name of the virtual machine manager driver
191
#
192
#   executable: path of the virtualization driver executable, can be an
193
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
194
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
195
#
196
#   arguments : for the driver executable
197
#
198
#   default   : default values and configuration parameters for the driver, can
199
#               be an absolute path or relative to $ONE_LOCATION/etc (or
200
#               /etc/one/ if OpenNebula was installed in /)
201
#
202
#   type      : driver type, supported drivers: xen, kvm, xml
203
#*******************************************************************************
204

    
205
#-------------------------------------------------------------------------------
206
#  KVM Virtualization Driver Manager Configuration
207
#    -r number of retries when monitoring a host
208
#    -t number of threads, i.e. number of hosts monitored at the same time
209
#    -l <actions[=command_name]> actions executed locally, command can be
210
#        overridden for each action.
211
#        Valid actions: deploy, shutdown, cancel, save, restore, migrate, poll
212
#        An example: "-l migrate,poll=poll_ganglia,save"
213
#-------------------------------------------------------------------------------
214
VM_MAD = [
215
    name       = "vmm_kvm",
216
    executable = "one_vmm_exec",
217
    arguments  = "-t 15 -r 0 kvm",
218
    default    = "vmm_exec/vmm_exec_kvm.conf",
219
    type       = "kvm" ]
220
#-------------------------------------------------------------------------------
221

    
222
#-------------------------------------------------------------------------------
223
#  XEN Virtualization Driver Manager Configuration
224
#    -r number of retries when monitoring a host
225
#    -t number of threads, i.e. number of hosts monitored at the same time
226
#    -l <actions[=command_name]> actions executed locally, command can be
227
#        overridden for each action.
228
#        Valid actions: deploy, shutdown, cancel, save, restore, migrate, poll
229
#        An example: "-l migrate,poll=poll_ganglia,save"
230
#-------------------------------------------------------------------------------
231
#VM_MAD = [
232
#    name       = "vmm_xen",
233
#    executable = "one_vmm_exec",
234
#    arguments  = "-t 15 -r 0 xen",
235
#    default    = "vmm_exec/vmm_exec_xen.conf",
236
#    type       = "xen" ]
237
#-------------------------------------------------------------------------------
238

    
239
#-------------------------------------------------------------------------------
240
#  VMware Virtualization Driver Manager Configuration
241
#    -r number of retries when monitoring a host
242
#    -t number of threads, i.e. number of hosts monitored at the same time
243
#-------------------------------------------------------------------------------
244
#VM_MAD = [
245
#    name       = "vmm_vmware",
246
#    executable = "one_vmm_sh",
247
#    arguments  = "-t 15 -r 0 vmware -s sh",
248
#    default    = "vmm_exec/vmm_exec_vmware.conf",
249
#    type       = "vmware" ]
250
#-------------------------------------------------------------------------------
251

    
252
#-------------------------------------------------------------------------------
253
#  EC2 Virtualization Driver Manager Configuration
254
#    arguments: default values for the EC2 driver, can be an absolute path or
255
#               relative to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was
256
#               installed in /).
257
#-------------------------------------------------------------------------------
258
#VM_MAD = [
259
#    name       = "vmm_ec2",
260
#    executable = "one_vmm_ec2",
261
#    arguments  = "vmm_ec2/vmm_ec2.conf",
262
#    type       = "xml" ]
263
#-------------------------------------------------------------------------------
264

    
265
#-------------------------------------------------------------------------------
266
#  Dummy Virtualization Driver Configuration
267
#-------------------------------------------------------------------------------
268
#VM_MAD = [ name="vmm_dummy", executable="one_vmm_dummy", type="xml" ]
269
#-------------------------------------------------------------------------------
270

    
271
#*******************************************************************************
272
# Transfer Manager Driver Configuration
273
#*******************************************************************************
274
# You can add more transfer managers with different configurations but make
275
# sure it has different names.
276
#   name      : name for this transfer driver
277
#
278
#   executable: path of the transfer driver executable, can be an
279
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
280
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
281
#   arguments :
282
#       -t: number of threads, i.e. number of transfers made at the same time
283
#       -d: list of transfer drivers separated by commas, if not defined all the
284
#           drivers available will be enabled
285
#*******************************************************************************
286

    
287
TM_MAD = [
288
    executable = "one_tm",
289
    arguments  = "-t 15 -d dummy,lvm,shared,qcow2,ssh,vmware,iscsi" ]
290

    
291
#*******************************************************************************
292
# Datastore Driver Configuration
293
#*******************************************************************************
294
# Drivers to manage the datastores, specialized for the storage backend
295
#   executable: path of the transfer driver executable, can be an
296
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
297
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
298
#
299
#   arguments : for the driver executable
300
#       -t number of threads, i.e. number of repo operations at the same time
301
#       -d datastore mads separated by commas
302
#*******************************************************************************
303

    
304
DATASTORE_MAD = [
305
    executable = "one_datastore",
306
    arguments  = "-t 15 -d fs,vmware,iscsi,lvm"
307
]
308

    
309
#*******************************************************************************
310
# Hook Manager Configuration
311
#*******************************************************************************
312
# The Driver (HM_MAD), used to execute the Hooks
313
#   executable: path of the hook driver executable, can be an
314
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
315
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
316
#
317
#   arguments : for the driver executable, can be an absolute path or relative
318
#               to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was installed
319
#               in /)
320
#
321
# Virtual Machine Hooks (VM_HOOK) defined by:
322
#   name      : for the hook, useful to track the hook (OPTIONAL)
323
#   on        : when the hook should be executed,
324
#               - CREATE, when the VM is created (onevm create)
325
#               - PROLOG, when the VM is in the prolog state
326
#               - RUNNING, after the VM is successfully booted
327
#               - SHUTDOWN, after the VM is shutdown
328
#               - STOP, after the VM is stopped (including VM image transfers)
329
#               - DONE, after the VM is deleted or shutdown
330
#               - FAILED, when the VM enters the failed state
331
#   command   : path is relative to $ONE_LOCATION/var/remotes/hook
332
#               (self-contained) or to /var/lib/one/remotes/hook (system-wide).
333
#               That directory will be copied on the hosts under
334
#               SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
335
#               on the target host
336
#   arguments : for the hook. You can access to VM information with $
337
#               - $VMID, the ID of the virtual machine
338
#               - $TEMPLATE, the VM template in xml and base64 encoded
339
#   remote    : values,
340
#               - YES, The hook is executed in the host where the VM was
341
#                 allocated
342
#               - NO, The hook is executed in the OpenNebula server (default)
343
#
344
# Host Hooks (HOST_HOOK) defined by:
345
#   name      : for the hook, useful to track the hook (OPTIONAL)
346
#   on        : when the hook should be executed,
347
#               - CREATE, when the Host is created (onehost create)
348
#               - ERROR, when the Host enters the error state
349
#               - DISABLE, when the Host is disabled
350
#   command   : path is relative to $ONE_LOCATION/var/remotes/hook
351
#               (self-contained) or to /var/lib/one/remotes/hook (system-wide).
352
#               That directory will be copied on the hosts under
353
#               SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
354
#               on the target host.
355
#   arguments : for the hook. You can use the following Host information:
356
#               - $HID, the ID of the host
357
#               - $TEMPLATE, the Host template in xml and base64 encoded
358
#   remote    : values,
359
#               - YES, The hook is executed in the host
360
#               - NO, The hook is executed in the OpenNebula server (default)
361
#-------------------------------------------------------------------------------
362
HM_MAD = [
363
    executable = "one_hm" ]
364
#-------------------------------------------------------------------------------
365

    
366
#*******************************************************************************
367
# Fault Tolerance Hooks
368
#*******************************************************************************
369
# This hook is used to perform recovery actions when a host fails. The VMs
370
# running in the host can be deleted (use -d option) or resubmitted (-r) in
371
# other host
372
# Last argument (force) can be "y", so suspended VMs in the host will be
373
# resubmitted/deleted, or "n", so suspended VMs in the host will be ignored
374
#
375
#HOST_HOOK = [
376
#    name      = "error",
377
#    on        = "ERROR",
378
#    command   = "ft/host_error.rb",
379
#    arguments = "$HID -r n",
380
#    remote    = "no" ]
381
#-------------------------------------------------------------------------------
382
# These two hooks can be used to automatically delete or resubmit VMs that reach
383
# the "failed" state. This way, the administrator doesn't have to interact
384
# manually to release its resources or retry the deployment.
385
#
386
#
387
# Only one of them should be uncommented.
388
#-------------------------------------------------------------------------------
389
#
390
#VM_HOOK = [
391
#   name      = "on_failure_delete",
392
#   on        = "FAILED",
393
#   command   = "/usr/bin/env onevm delete",
394
#   arguments = "$VMID" ]
395
#
396
#VM_HOOK = [
397
#   name      = "on_failure_resubmit",
398
#   on        = "FAILED",
399
#   command   = "/usr/bin/env onevm resubmit",
400
#   arguments = "$VMID" ]
401
#-------------------------------------------------------------------------------
402

    
403
#*******************************************************************************
404
# Auth Manager Configuration
405
#*******************************************************************************
406
# AUTH_MAD: The Driver that will be used to authenticate (authn) and
407
# authorize (authz) OpenNebula requests. If defined OpenNebula will use the
408
# built-in auth policies.
409
#
410
#   executable: path of the auth driver executable, can be an
411
#               absolute path or relative to $ONE_LOCATION/lib/mads (or
412
#               /usr/lib/one/mads/ if OpenNebula was installed in /)
413
#
414
#   authn     : list of authentication modules separated by commas, if not
415
#               defined all the modules available will be enabled
416
#   authz     : list of authentication modules separated by commas
417
#
418
# SESSION_EXPIRATION_TIME: Time in seconds to keep an authenticated token as
419
# valid. During this time, the driver is not used. Use 0 to disable session
420
# caching
421
#
422
# ENABLE_OTHER_PERMISSIONS: Whether or not users can set the permissions for
423
# 'other', so publishing or sharing resources with others. Users in the oneadmin
424
# group will still be able to change these permissions. Values: YES or NO.
425
#*******************************************************************************
426

    
427
AUTH_MAD = [
428
    executable = "one_auth_mad",
429
    authn = "ssh,x509,ldap,server_cipher,server_x509"
430
]
431

    
432
SESSION_EXPIRATION_TIME = 900
433

    
434
#ENABLE_OTHER_PERMISSIONS = "YES"
435

    
436
#*******************************************************************************
437
# Restricted Attributes Configuration
438
#*******************************************************************************
439
# The following attributes are restricted to users outside the oneadmin group
440
#*******************************************************************************
441

    
442
VM_RESTRICTED_ATTR = "CONTEXT/FILES"
443
VM_RESTRICTED_ATTR = "NIC/MAC"
444
VM_RESTRICTED_ATTR = "NIC/VLAN_ID"
445
VM_RESTRICTED_ATTR = "RANK"
446

    
447
IMAGE_RESTRICTED_ATTR = "SOURCE"