2008-07-03 01:18:42 +00:00
#*******************************************************************************
# OpenNebula Configuration file
#*******************************************************************************
2008-06-17 16:27:32 +00:00
2009-04-04 23:10:02 +00:00
#*******************************************************************************
2008-07-03 01:18:42 +00:00
# Daemon configuration attributes
#-------------------------------------------------------------------------------
2010-11-11 15:17:46 +01:00
# MANAGER_TIMER: Time in seconds the core uses to evaluate periodical functions.
2013-02-14 15:24:32 +01:00
# MONITORING_INTERVAL cannot have a smaller value than MANAGER_TIMER.
#
# MONITORING_INTERVAL: Time in seconds between host and VM monitorization.
2010-11-11 15:17:46 +01:00
#
2011-08-16 18:12:45 +02:00
# HOST_PER_INTERVAL: Number of hosts monitored in each interval.
2012-05-17 00:56:03 +02:00
# HOST_MONITORING_EXPIRATION_TIME: Time, in seconds, to expire monitoring
# information. Use 0 to disable HOST monitoring recording.
2008-12-02 17:43:12 +00:00
#
2011-08-16 18:12:45 +02:00
# VM_PER_INTERVAL: Number of VMs monitored in each interval.
2012-05-17 00:56:03 +02:00
# VM_MONITORING_EXPIRATION_TIME: Time, in seconds, to expire monitoring
# information. Use 0 to disable VM monitoring recording.
2008-06-17 16:27:32 +00:00
#
2010-12-22 18:53:38 +01:00
# SCRIPTS_REMOTE_DIR: Remote path to store the monitoring and VM management
# scripts.
#
2008-07-03 01:18:42 +00:00
# PORT: Port where oned will listen for xmlrpc calls.
2008-06-17 16:27:32 +00:00
#
2010-05-05 00:21:28 +02:00
# DB: Configuration attributes for the database backend
# backend : can be sqlite or mysql (default is sqlite)
# server : (mysql) host name or an IP address for the MySQL server
2010-11-10 18:44:13 +01:00
# port : (mysql) port for the connection to the server.
# If set to 0, the default port is used.
2010-05-05 00:21:28 +02:00
# user : (mysql) user's MySQL login ID
# passwd : (mysql) the password for user
# db_name : (mysql) the database name
#
2010-03-05 19:43:34 +01:00
# VNC_BASE_PORT: VNC ports for VMs can be automatically set to VNC_BASE_PORT +
# VMID
#
2013-01-31 20:43:17 +01:00
# LOG: Configuration for the logging system
2013-02-01 18:49:03 +01:00
# system: defines the logging system:
# file to log in the oned.log file
# syslog to use the syslog facilities
# debug_level: 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
2012-12-20 18:57:20 +01:00
#
# VM_SUBMIT_ON_HOLD: Forces VMs to be created on hold state instead of pending.
# Values: YES or NO.
2009-04-04 23:10:02 +00:00
#*******************************************************************************
2008-06-17 16:27:32 +00:00
2013-01-31 20:43:17 +01:00
LOG = [
2013-02-01 18:49:03 +01:00
system = "file",
debug_level = 3
2013-01-31 20:43:17 +01:00
]
2013-01-25 17:32:12 +01:00
2011-08-16 18:12:45 +02:00
#MANAGER_TIMER = 30
2010-11-11 15:17:46 +01:00
2013-11-08 15:28:19 +01:00
MONITORING_INTERVAL = 60
2013-02-14 15:24:32 +01:00
2012-05-17 00:56:03 +02:00
#HOST_PER_INTERVAL = 15
2013-11-08 15:28:19 +01:00
#HOST_MONITORING_EXPIRATION_TIME = 43200
2008-12-02 17:43:12 +00:00
2012-05-17 00:56:03 +02:00
#VM_PER_INTERVAL = 5
2013-11-08 15:28:19 +01:00
#VM_MONITORING_EXPIRATION_TIME = 14400
2008-06-17 16:27:32 +00:00
2010-10-20 17:23:28 +02:00
SCRIPTS_REMOTE_DIR=/var/tmp/one
2010-09-10 16:42:18 +02:00
2011-08-16 18:12:45 +02:00
PORT = 2633
2008-06-17 16:27:32 +00:00
2010-05-05 00:21:28 +02:00
DB = [ backend = "sqlite" ]
# Sample configuration for MySQL
# DB = [ backend = "mysql",
# server = "localhost",
2010-11-10 18:44:13 +01:00
# port = 0,
2010-05-05 00:21:28 +02:00
# user = "oneadmin",
# passwd = "oneadmin",
# db_name = "opennebula" ]
2010-10-13 13:42:40 +02:00
VNC_BASE_PORT = 5900
2010-03-05 19:43:34 +01:00
2012-12-20 18:57:20 +01:00
#VM_SUBMIT_ON_HOLD = "NO"
2013-07-31 16:40:45 +02:00
#*******************************************************************************
# XML-RPC server configuration
#-------------------------------------------------------------------------------
# These are configuration parameters for oned's xmlrpc-c server
#
# MAX_CONN: Maximum number of simultaneous TCP connections the server
# will maintain
#
# MAX_CONN_BACKLOG: Maximum number of TCP connections the operating system
# will accept on the server's behalf without the server accepting them from
# the operating system
#
# KEEPALIVE_TIMEOUT: Maximum time in seconds that the server allows a
# connection to be open between RPCs
#
# KEEPALIVE_MAX_CONN: Maximum number of RPCs that the server will execute on
# a single connection
#
# TIMEOUT: Maximum time in seconds the server will wait for the client to
# do anything while processing an RPC
#*******************************************************************************
#MAX_CONN = 15
#MAX_CONN_BACKLOG = 15
#KEEPALIVE_TIMEOUT = 15
#KEEPALIVE_MAX_CONN = 30
#TIMEOUT = 15
2009-04-04 23:10:02 +00:00
#*******************************************************************************
2008-11-13 16:21:17 +00:00
# Physical Networks configuration
2009-04-04 23:10:02 +00:00
#*******************************************************************************
2008-12-02 17:43:12 +00:00
# NETWORK_SIZE: Here you can define the default size for the virtual networks
2008-11-13 16:21:17 +00:00
#
2009-02-15 00:24:39 +00:00
# MAC_PREFIX: Default MAC prefix to be used to create the auto-generated MAC
# addresses is defined here (this can be overrided by the Virtual Network
2008-12-02 17:43:12 +00:00
# template)
2009-04-04 23:10:02 +00:00
#*******************************************************************************
2008-11-13 16:21:17 +00:00
2008-12-02 17:43:12 +00:00
NETWORK_SIZE = 254
2008-11-13 16:21:17 +00:00
2010-06-28 21:45:17 +02:00
MAC_PREFIX = "02:00"
2008-11-13 16:21:17 +00:00
2010-06-01 18:00:44 +02:00
#*******************************************************************************
2012-02-15 23:53:35 +01:00
# DataStore Configuration
2010-06-01 18:00:44 +02:00
#*******************************************************************************
2012-10-05 13:23:44 +02:00
# DATASTORE_LOCATION: *Default* Path for Datastores in the hosts. It IS the
# same for all the hosts in the cluster. DATASTORE_LOCATION IS ONLY FOR THE
# HOSTS AND *NOT* THE FRONT-END. It defaults to /var/lib/one/datastores (or
2012-03-03 03:38:18 +01:00
# $ONE_LOCATION/var/datastores in self-contained mode)
2012-02-15 23:53:35 +01:00
#
2012-10-05 13:23:44 +02:00
# You can define a different DATASTORE_LOCATION in each cluster by updating
# its properties with onecluster update.
#
2013-10-04 13:26:03 +02:00
# DATASTORE_BASE_PATH: This is the base path for the SOURCE attribute of
# the images registered in a Datastore. This is a default value, that can be
# changed when the datastore is created.
#
2013-07-10 17:48:39 +02:00
# DATASTORE_CAPACITY_CHECK: Checks that there is enough capacity before
# creating a new imag. Defaults to Yes
#
2010-06-01 18:00:44 +02:00
# DEFAULT_IMAGE_TYPE: This can take values
# OS Image file holding an operating system
# CDROM Image file holding a CDROM
2012-04-25 16:47:12 +02:00
# DATABLOCK Image file holding a datablock,
# always created as an empty block
# DEFAULT_DEVICE_PREFIX: This can be set to
# hd IDE prefix
# sd SCSI
# xvd XEN Virtual Disk
# vd KVM virtual disk
2010-06-01 18:00:44 +02:00
#*******************************************************************************
2012-02-15 23:53:35 +01:00
2013-10-04 13:26:03 +02:00
#DATASTORE_LOCATION = /var/lib/one/datastores
#DATASTORE_BASE_PATH = /var/lib/one/datastores
2012-04-25 16:47:12 +02:00
2013-07-10 17:48:39 +02:00
DATASTORE_CAPACITY_CHECK = "yes"
2012-04-25 16:47:12 +02:00
DEFAULT_IMAGE_TYPE = "OS"
DEFAULT_DEVICE_PREFIX = "hd"
2010-06-01 18:00:44 +02:00
2013-07-10 17:48:39 +02:00
2009-04-04 23:10:02 +00:00
#*******************************************************************************
2008-07-03 01:18:42 +00:00
# Information Driver Configuration
2009-04-04 23:10:02 +00:00
#*******************************************************************************
2009-02-15 00:24:39 +00:00
# You can add more information managers with different configurations but make
2008-07-03 01:18:42 +00:00
# sure it has different names.
2009-01-02 14:58:51 +00:00
#
2008-07-03 01:18:42 +00:00
# name : name for this information manager
2009-01-02 14:58:51 +00:00
#
2009-02-15 00:24:39 +00:00
# executable: path of the information driver executable, can be an
2009-01-02 14:58:51 +00:00
# absolute path or relative to $ONE_LOCATION/lib/mads (or
2009-02-15 00:24:39 +00:00
# /usr/lib/one/mads/ if OpenNebula was installed in /)
2009-01-02 14:58:51 +00:00
#
# arguments : for the driver executable, usually a probe configuration file,
# can be an absolute path or relative to $ONE_LOCATION/etc (or
# /etc/one/ if OpenNebula was installed in /)
2009-04-04 23:10:02 +00:00
#*******************************************************************************
2008-07-03 01:18:42 +00:00
2013-10-13 20:19:13 +02:00
#-------------------------------------------------------------------------------
# Information Collector for KVM and Xen IM's.
#-------------------------------------------------------------------------------
# This driver CANNOT BE ASSIGNED TO A HOST, and needs to be used with KVM or
# Xen drivers
# -h prints this help.
# -a Address to bind the collectd sockect (defults 0.0.0.0)
# -p UDP port to listen for monitor information (default 4124)
# -f Interval in seconds to flush collected information (default 5)
# -t Number of threads for the server (defult 50)
2013-11-05 18:29:06 +01:00
# -i Time in seconds of the monitorization push cycle. This parameter must
# be smaller than MONITORING_INTERVAL, otherwise push monitorization will
# not be effective.
2013-10-13 20:19:13 +02:00
#-------------------------------------------------------------------------------
IM_MAD = [
name = "collectd",
executable = "collectd",
2013-11-05 18:29:06 +01:00
arguments = "-p 4124 -f 5 -t 50 -i 20" ]
2013-10-13 20:19:13 +02:00
#-------------------------------------------------------------------------------
2008-12-02 17:43:12 +00:00
#-------------------------------------------------------------------------------
2010-09-01 19:58:01 +02:00
# KVM Information Driver Manager Configuration
2011-01-20 18:36:37 +01:00
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of hosts monitored at the same time
2008-12-02 17:43:12 +00:00
#-------------------------------------------------------------------------------
2009-07-16 17:14:01 +00:00
IM_MAD = [
2013-02-04 11:48:00 +01:00
name = "kvm",
2009-07-16 17:14:01 +00:00
executable = "one_im_ssh",
2013-10-24 12:42:55 +02:00
arguments = "-r 3 -t 15 kvm" ]
2008-12-02 17:43:12 +00:00
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
2010-09-01 19:58:01 +02:00
# XEN Information Driver Manager Configuration
2011-01-20 18:36:37 +01:00
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of hosts monitored at the same time
2010-09-01 19:58:01 +02:00
#-------------------------------------------------------------------------------
2013-07-08 13:24:03 +02:00
# Driver for Xen 3.x
#IM_MAD = [
# name = "xen",
# executable = "one_im_ssh",
# arguments = "xen3" ]
# Driver for Xen 4.x
2010-09-01 19:58:01 +02:00
#IM_MAD = [
2013-02-04 11:48:00 +01:00
# name = "xen",
2010-09-01 19:58:01 +02:00
# executable = "one_im_ssh",
2013-07-08 13:24:03 +02:00
# arguments = "xen4" ]
2010-09-01 19:58:01 +02:00
#-------------------------------------------------------------------------------
2011-11-29 16:37:01 +01:00
#-------------------------------------------------------------------------------
# VMware Information Driver Manager Configuration
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of hosts monitored at the same time
#-------------------------------------------------------------------------------
#IM_MAD = [
2013-02-04 11:48:00 +01:00
# name = "vmware",
2011-11-29 16:37:01 +01:00
# executable = "one_im_sh",
2012-06-15 17:43:01 +02:00
# arguments = "-c -t 15 -r 0 vmware" ]
2011-11-29 16:37:01 +01:00
#-------------------------------------------------------------------------------
2010-09-01 19:58:01 +02:00
#-------------------------------------------------------------------------------
# EC2 Information Driver Manager Configuration
2008-12-02 17:43:12 +00:00
#-------------------------------------------------------------------------------
2009-03-07 00:50:05 +00:00
#IM_MAD = [
2013-02-04 11:48:00 +01:00
# name = "ec2",
2013-09-03 18:52:33 +02:00
# executable = "one_im_sh",
# arguments = "-c -t 1 -r 0 ec2" ]
2008-12-02 17:43:12 +00:00
#-------------------------------------------------------------------------------
2008-07-18 22:14:06 +00:00
2010-09-01 19:58:01 +02:00
#-------------------------------------------------------------------------------
# Dummy Information Driver Manager Configuration
#-------------------------------------------------------------------------------
2013-02-04 11:48:00 +01:00
#IM_MAD = [ name="dummy", executable="one_im_dummy"]
2010-09-01 19:58:01 +02:00
#-------------------------------------------------------------------------------
2009-04-04 23:10:02 +00:00
#*******************************************************************************
2008-07-03 01:18:42 +00:00
# Virtualization Driver Configuration
2009-04-04 23:10:02 +00:00
#*******************************************************************************
2009-02-15 00:24:39 +00:00
# You can add more virtualization managers with different configurations but
2008-07-03 01:18:42 +00:00
# make sure it has different names.
2009-01-02 14:58:51 +00:00
#
2008-07-03 01:18:42 +00:00
# name : name of the virtual machine manager driver
2009-01-02 14:58:51 +00:00
#
2009-02-15 00:24:39 +00:00
# executable: path of the virtualization driver executable, can be an
2009-01-02 14:58:51 +00:00
# absolute path or relative to $ONE_LOCATION/lib/mads (or
2009-02-15 00:24:39 +00:00
# /usr/lib/one/mads/ if OpenNebula was installed in /)
2009-01-02 14:58:51 +00:00
#
2008-07-03 01:18:42 +00:00
# arguments : for the driver executable
2009-01-02 14:58:51 +00:00
#
2009-02-15 00:24:39 +00:00
# default : default values and configuration parameters for the driver, can
2009-01-02 14:58:51 +00:00
# be an absolute path or relative to $ONE_LOCATION/etc (or
# /etc/one/ if OpenNebula was installed in /)
#
2009-02-15 00:24:39 +00:00
# type : driver type, supported drivers: xen, kvm, xml
2009-04-04 23:10:02 +00:00
#*******************************************************************************
2008-07-03 01:18:42 +00:00
2010-08-31 10:47:22 +02:00
#-------------------------------------------------------------------------------
2010-09-01 19:58:01 +02:00
# KVM Virtualization Driver Manager Configuration
2011-02-02 23:19:05 +01:00
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of hosts monitored at the same time
2012-03-23 20:26:53 +01:00
# -l <actions[=command_name]> actions executed locally, command can be
2011-09-01 17:19:49 +02:00
# overridden for each action.
2011-08-29 19:17:50 +02:00
# Valid actions: deploy, shutdown, cancel, save, restore, migrate, poll
2013-08-28 16:03:57 +02:00
# An example: "-l migrate=migrate_local,save"
2013-05-18 20:22:47 +02:00
#
# Note: You can use type = "qemu" to use qemu emulated guests, e.g. if your
# CPU does not have virtualization extensions or use nested Qemu-KVM hosts
2010-08-31 10:47:22 +02:00
#-------------------------------------------------------------------------------
VM_MAD = [
2013-02-04 11:48:00 +01:00
name = "kvm",
2011-06-01 19:36:29 +02:00
executable = "one_vmm_exec",
2011-02-07 10:40:14 +01:00
arguments = "-t 15 -r 0 kvm",
2011-06-01 19:36:29 +02:00
default = "vmm_exec/vmm_exec_kvm.conf",
2010-08-31 10:47:22 +02:00
type = "kvm" ]
2010-09-01 19:58:01 +02:00
#-------------------------------------------------------------------------------
2010-08-24 16:44:42 +02:00
2010-09-01 19:58:01 +02:00
#-------------------------------------------------------------------------------
# XEN Virtualization Driver Manager Configuration
2011-02-02 23:19:05 +01:00
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of hosts monitored at the same time
2012-03-23 20:26:53 +01:00
# -l <actions[=command_name]> actions executed locally, command can be
2011-09-01 17:19:49 +02:00
# overridden for each action.
2011-08-29 19:17:50 +02:00
# Valid actions: deploy, shutdown, cancel, save, restore, migrate, poll
2013-08-28 16:03:57 +02:00
# An example: "-l migrate,save"
2010-09-01 19:58:01 +02:00
#-------------------------------------------------------------------------------
2013-02-08 15:27:20 +01:00
# Driver for Xen 3.x
2010-08-24 16:44:42 +02:00
#VM_MAD = [
2013-02-04 11:48:00 +01:00
# name = "xen",
2011-06-01 19:36:29 +02:00
# executable = "one_vmm_exec",
2013-02-08 15:27:20 +01:00
# arguments = "-t 15 -r 0 xen3",
# default = "vmm_exec/vmm_exec_xen3.conf",
2010-08-24 16:44:42 +02:00
# type = "xen" ]
2013-02-08 15:27:20 +01:00
# Driver for Xen 4.x
#VM_MAD = [
# name = "xen",
# executable = "one_vmm_exec",
# arguments = "-t 15 -r 0 xen4",
# default = "vmm_exec/vmm_exec_xen4.conf",
# type = "xen" ]
2008-12-02 17:43:12 +00:00
#-------------------------------------------------------------------------------
2011-11-29 16:37:01 +01:00
#-------------------------------------------------------------------------------
# VMware Virtualization Driver Manager Configuration
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of hosts monitored at the same time
#-------------------------------------------------------------------------------
#VM_MAD = [
2013-02-04 11:48:00 +01:00
# name = "vmware",
2011-11-29 16:37:01 +01:00
# executable = "one_vmm_sh",
2012-06-20 15:50:32 +02:00
# arguments = "-t 15 -r 0 vmware -s sh",
2011-11-29 16:37:01 +01:00
# default = "vmm_exec/vmm_exec_vmware.conf",
# type = "vmware" ]
#-------------------------------------------------------------------------------
2008-12-02 17:43:12 +00:00
#-------------------------------------------------------------------------------
2010-09-01 19:58:01 +02:00
# EC2 Virtualization Driver Manager Configuration
2013-09-03 18:52:33 +02:00
# -r number of retries when monitoring a host
# -t number of threads, i.e. number of actions performed at the same time
2008-12-02 17:43:12 +00:00
#-------------------------------------------------------------------------------
2009-03-07 00:50:05 +00:00
#VM_MAD = [
2013-02-04 11:48:00 +01:00
# name = "ec2",
2013-09-03 18:52:33 +02:00
# executable = "one_vmm_sh",
# arguments = "-t 15 -r 0 ec2",
2009-03-07 00:50:05 +00:00
# type = "xml" ]
2008-12-02 17:43:12 +00:00
#-------------------------------------------------------------------------------
2008-07-04 16:55:49 +00:00
2010-09-01 19:58:01 +02:00
#-------------------------------------------------------------------------------
# Dummy Virtualization Driver Configuration
#-------------------------------------------------------------------------------
2013-02-04 11:48:00 +01:00
#VM_MAD = [ name="dummy", executable="one_vmm_dummy", type="xml" ]
2010-09-01 19:58:01 +02:00
#-------------------------------------------------------------------------------
2009-04-04 23:10:02 +00:00
#*******************************************************************************
2008-11-13 16:21:17 +00:00
# Transfer Manager Driver Configuration
2009-04-04 23:10:02 +00:00
#*******************************************************************************
2009-02-15 00:24:39 +00:00
# You can add more transfer managers with different configurations but make
2008-11-13 16:21:17 +00:00
# sure it has different names.
2009-01-02 14:58:51 +00:00
# name : name for this transfer driver
#
2009-02-15 00:24:39 +00:00
# executable: path of the transfer driver executable, can be an
2009-01-02 14:58:51 +00:00
# absolute path or relative to $ONE_LOCATION/lib/mads (or
2009-02-15 00:24:39 +00:00
# /usr/lib/one/mads/ if OpenNebula was installed in /)
2012-02-28 23:51:36 +01:00
# arguments :
# -t: number of threads, i.e. number of transfers made at the same time
# -d: list of transfer drivers separated by commas, if not defined all the
# drivers available will be enabled
2013-10-28 17:57:19 +01:00
#
# The configuration for each driver is defined in TM_MAD_CONF. These
# values are used when creating a new datastore and should not be modified
# since they define the datastore behaviour.
# name : name of the transfer driver, listed in the -d option of the
# TM_MAD section
# ln_target : determines how the persistent images will be cloned when
# a new VM is instantiated.
# NONE: The image will be linked and no more storage capacity will be used
# SELF: The image will be cloned in the Images datastore
# SYSTEM: The image will be cloned in the System datastore
# clone_target : determines how the non persistent images will be
# cloned when a new VM is instantiated.
# NONE: The image will be linked and no more storage capacity will be used
# SELF: The image will be cloned in the Images datastore
# SYSTEM: The image will be cloned in the System datastore
# shared : determines if the storage holding the system datastore is shared
# among the different hosts or not. Valid values: "yes" or "no"
2009-04-04 23:10:02 +00:00
#*******************************************************************************
2008-11-13 16:21:17 +00:00
2009-07-16 17:14:01 +00:00
TM_MAD = [
executable = "one_tm",
2013-11-11 17:43:57 +01:00
arguments = "-t 15 -d dummy,lvm,shared,fs_lvm,qcow2,ssh,vmfs,iscsi,ceph"
2013-09-16 16:40:52 +02:00
]
2011-11-29 16:37:01 +01:00
2013-10-23 16:15:18 +02:00
TM_MAD_CONF = [
name = "dummy",
ln_target = "NONE",
clone_target= "SYSTEM",
shared = "yes"
]
TM_MAD_CONF = [
name = "lvm",
ln_target = "NONE",
clone_target= "SELF",
shared = "yes"
]
TM_MAD_CONF = [
name = "shared",
ln_target = "NONE",
clone_target= "SYSTEM",
shared = "yes"
]
TM_MAD_CONF = [
2013-11-11 17:43:57 +01:00
name = "fs_lvm",
2013-10-23 16:15:18 +02:00
ln_target = "SYSTEM",
clone_target= "SYSTEM",
shared = "yes"
]
TM_MAD_CONF = [
name = "qcow2",
ln_target = "NONE",
clone_target= "SYSTEM",
shared = "yes"
]
TM_MAD_CONF = [
name = "ssh",
ln_target = "SYSTEM",
clone_target= "SYSTEM",
shared = "no"
]
TM_MAD_CONF = [
name = "vmfs",
ln_target = "NONE",
clone_target= "SYSTEM",
shared = "yes"
]
TM_MAD_CONF = [
name = "iscsi",
ln_target = "NONE",
clone_target= "SELF",
shared = "yes"
]
TM_MAD_CONF = [
name = "ceph",
ln_target = "NONE",
clone_target= "SELF",
shared = "yes"
]
2011-03-22 18:21:09 +01:00
#*******************************************************************************
2012-02-19 02:08:03 +01:00
# Datastore Driver Configuration
2011-03-22 18:21:09 +01:00
#*******************************************************************************
2012-02-19 02:08:03 +01:00
# Drivers to manage the datastores, specialized for the storage backend
2011-03-22 18:21:09 +01:00
# executable: path of the transfer driver executable, can be an
# absolute path or relative to $ONE_LOCATION/lib/mads (or
# /usr/lib/one/mads/ if OpenNebula was installed in /)
#
# arguments : for the driver executable
2012-02-19 02:08:03 +01:00
# -t number of threads, i.e. number of repo operations at the same time
2012-03-06 15:13:55 +01:00
# -d datastore mads separated by commas
2011-03-22 18:21:09 +01:00
#*******************************************************************************
2012-02-19 02:08:03 +01:00
DATASTORE_MAD = [
executable = "one_datastore",
2013-07-04 16:39:40 +02:00
arguments = "-t 15 -d dummy,fs,vmfs,iscsi,lvm,ceph"
2012-02-20 20:10:30 +01:00
]
2011-03-22 18:21:09 +01:00
2009-04-04 23:10:02 +00:00
#*******************************************************************************
# Hook Manager Configuration
#*******************************************************************************
2012-10-09 16:23:48 +02:00
# The Driver (HM_MAD)
# -----------------------------------------------
#
# Used to execute the Hooks:
2009-04-03 23:34:33 +00:00
# executable: path of the hook driver executable, can be an
# absolute path or relative to $ONE_LOCATION/lib/mads (or
# /usr/lib/one/mads/ if OpenNebula was installed in /)
#
2009-04-09 23:31:41 +00:00
# arguments : for the driver executable, can be an absolute path or relative
# to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was installed
2009-04-03 23:34:33 +00:00
# in /)
2009-04-04 23:10:02 +00:00
#
2012-10-09 16:23:48 +02:00
# Virtual Machine Hooks (VM_HOOK)
# -------------------------------
#
# Defined by:
2009-04-09 23:31:41 +00:00
# name : for the hook, useful to track the hook (OPTIONAL)
# on : when the hook should be executed,
2009-04-04 23:10:02 +00:00
# - CREATE, when the VM is created (onevm create)
2011-06-07 17:58:25 +02:00
# - PROLOG, when the VM is in the prolog state
2009-04-09 23:31:41 +00:00
# - RUNNING, after the VM is successfully booted
2012-10-07 23:25:54 +02:00
# - UNKNOWN, when the VM is in the unknown state
2009-04-09 23:31:41 +00:00
# - SHUTDOWN, after the VM is shutdown
# - STOP, after the VM is stopped (including VM image transfers)
2009-10-28 20:12:53 +00:00
# - DONE, after the VM is deleted or shutdown
2010-12-22 18:08:04 +01:00
# - FAILED, when the VM enters the failed state
2013-05-20 14:33:53 +02:00
# - CUSTOM, user defined specific STATE and LCM_STATE combination
# of states to trigger the hook.
2011-09-01 17:10:18 +02:00
# command : path is relative to $ONE_LOCATION/var/remotes/hook
# (self-contained) or to /var/lib/one/remotes/hook (system-wide).
# That directory will be copied on the hosts under
# SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
# on the target host
2011-05-13 16:05:51 +02:00
# arguments : for the hook. You can access to VM information with $
2012-10-08 12:33:32 +02:00
# - $ID, the ID of the virtual machine
2011-05-13 16:05:51 +02:00
# - $TEMPLATE, the VM template in xml and base64 encoded
2013-05-20 14:33:53 +02:00
# - $PREV_STATE, the previous STATE of the Virtual Machine
# - $PREV_LCM_STATE, the previous LCM STATE of the Virtual Machine
2009-04-09 23:31:41 +00:00
# remote : values,
# - YES, The hook is executed in the host where the VM was
# allocated
# - NO, The hook is executed in the OpenNebula server (default)
2010-12-26 18:58:41 +01:00
#
2013-05-20 14:33:53 +02:00
# Example Virtual Machine Hook
# ----------------------------
#
# VM_HOOK = [
# name = "advanced_hook",
# on = "CUSTOM",
# state = "ACTIVE",
# lcm_state = "BOOT_UNKNOWN",
# command = "log.rb",
# arguments = "$ID $PREV_STATE $PREV_LCM_STATE" ]
#
2012-10-09 16:23:48 +02:00
# Host Hooks (HOST_HOOK)
# -------------------------------
#
# Defined by:
2010-12-26 18:58:41 +01:00
# name : for the hook, useful to track the hook (OPTIONAL)
# on : when the hook should be executed,
# - CREATE, when the Host is created (onehost create)
# - ERROR, when the Host enters the error state
2011-01-18 18:43:35 +01:00
# - DISABLE, when the Host is disabled
2011-09-01 17:10:18 +02:00
# command : path is relative to $ONE_LOCATION/var/remotes/hook
# (self-contained) or to /var/lib/one/remotes/hook (system-wide).
# That directory will be copied on the hosts under
# SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
# on the target host.
2011-05-13 16:05:51 +02:00
# arguments : for the hook. You can use the following Host information:
2012-10-08 12:33:32 +02:00
# - $ID, the ID of the host
2011-05-13 16:05:51 +02:00
# - $TEMPLATE, the Host template in xml and base64 encoded
2010-12-26 18:58:41 +01:00
# remote : values,
# - YES, The hook is executed in the host
# - NO, The hook is executed in the OpenNebula server (default)
2012-10-08 12:33:32 +02:00
#
2012-10-09 16:23:48 +02:00
# Virtual Network (VNET_HOOK)
# User (USER_HOOK)
# Group (GROUP_HOOK)
# Image (IMAGE_HOOK)
# -------------------------------
#
# These hooks are executed when one of the referring entities are created or
# removed. Each hook is defined by:
2012-10-08 12:33:32 +02:00
# name : for the hook, useful to track the hook (OPTIONAL)
# on : when the hook should be executed,
# - CREATE, when the vnet is created
# - REMOVE, when the vnet is removed
# command : path is relative to $ONE_LOCATION/var/remotes/hook
# (self-contained) or to /var/lib/one/remotes/hook (system-wide).
# That directory will be copied on the hosts under
# SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
# on the target host.
# arguments : for the hook. You can use the following Host information:
# - $ID, the ID of the host
# - $TEMPLATE, the vnet template in xml and base64 encoded
2009-04-03 23:34:33 +00:00
#-------------------------------------------------------------------------------
HM_MAD = [
executable = "one_hm" ]
2011-09-01 16:57:02 +02:00
#*******************************************************************************
# Fault Tolerance Hooks
#*******************************************************************************
2012-10-19 18:32:19 +02:00
# This hook is used to perform recovery actions when a host fails.
# Script to implement host failure tolerance
# It can be set to
2013-03-20 14:46:07 +01:00
# -r recreate VMs running in the host
2012-10-19 18:32:19 +02:00
# -d delete VMs running in the host
# Additional flags
# -f force resubmission of suspended VMs
# -p <n> avoid resubmission if host comes
# back after n monitoring cycles
2012-10-22 12:04:35 +02:00
#*******************************************************************************
2011-01-27 18:36:28 +01:00
#
#HOST_HOOK = [
# name = "error",
# on = "ERROR",
2011-09-01 16:57:02 +02:00
# command = "ft/host_error.rb",
2012-10-19 18:32:19 +02:00
# arguments = "$ID -r",
2011-03-24 16:03:24 +01:00
# remote = "no" ]
2010-12-26 18:58:41 +01:00
#-------------------------------------------------------------------------------
2011-06-13 16:04:41 +02:00
# These two hooks can be used to automatically delete or resubmit VMs that reach
2011-02-09 18:06:47 +01:00
# the "failed" state. This way, the administrator doesn't have to interact
# manually to release its resources or retry the deployment.
#
2011-06-13 16:04:41 +02:00
#
2011-02-09 18:06:47 +01:00
# Only one of them should be uncommented.
#-------------------------------------------------------------------------------
#
#VM_HOOK = [
# name = "on_failure_delete",
2011-03-24 16:03:24 +01:00
# on = "FAILED",
2013-04-11 16:39:55 +02:00
# command = "/usr/bin/env onevm delete",
2012-10-08 12:33:32 +02:00
# arguments = "$ID" ]
2011-02-09 18:06:47 +01:00
#
#VM_HOOK = [
2013-03-20 14:46:07 +01:00
# name = "on_failure_recreate",
2011-03-24 16:03:24 +01:00
# on = "FAILED",
2013-04-11 16:39:55 +02:00
# command = "/usr/bin/env onevm delete --recreate",
2012-10-08 12:33:32 +02:00
# arguments = "$ID" ]
2011-02-09 18:06:47 +01:00
#-------------------------------------------------------------------------------
2010-12-26 18:58:41 +01:00
2010-07-08 19:28:10 +02:00
#*******************************************************************************
# Auth Manager Configuration
#*******************************************************************************
2011-10-20 12:53:36 +02:00
# AUTH_MAD: The Driver that will be used to authenticate (authn) and
2011-09-12 18:25:36 +02:00
# authorize (authz) OpenNebula requests. If defined OpenNebula will use the
# built-in auth policies.
#
2010-07-08 19:28:10 +02:00
# executable: path of the auth driver executable, can be an
# absolute path or relative to $ONE_LOCATION/lib/mads (or
# /usr/lib/one/mads/ if OpenNebula was installed in /)
#
2012-04-13 17:16:39 +02:00
# authn : list of authentication modules separated by commas, if not
# defined all the modules available will be enabled
# authz : list of authentication modules separated by commas
2011-10-20 12:53:36 +02:00
#
# SESSION_EXPIRATION_TIME: Time in seconds to keep an authenticated token as
2012-03-23 20:26:53 +01:00
# valid. During this time, the driver is not used. Use 0 to disable session
2011-10-25 02:08:19 +02:00
# caching
2012-01-11 16:46:57 +01:00
#
2012-06-10 20:40:18 +02:00
# ENABLE_OTHER_PERMISSIONS: Whether or not users can set the permissions for
# 'other', so publishing or sharing resources with others. Users in the oneadmin
# group will still be able to change these permissions. Values: YES or NO.
2013-01-18 18:34:51 +01:00
#
# DEFAULT_UMASK: Similar to Unix umask, sets the default resources permissions.
# Its format must be 3 octal digits. For example a umask of 137 will set
# the new object's permissions to 640 "um- u-- ---"
2011-10-20 12:53:36 +02:00
#*******************************************************************************
2010-07-08 19:28:10 +02:00
2011-10-31 23:38:41 +01:00
AUTH_MAD = [
executable = "one_auth_mad",
2012-04-11 17:58:57 +02:00
authn = "ssh,x509,ldap,server_cipher,server_x509"
2011-10-31 23:38:41 +01:00
]
SESSION_EXPIRATION_TIME = 900
2011-09-12 18:25:36 +02:00
2012-01-23 08:18:12 -08:00
#ENABLE_OTHER_PERMISSIONS = "YES"
2013-01-18 18:34:51 +01:00
DEFAULT_UMASK = 177
2012-01-23 08:18:12 -08:00
#*******************************************************************************
# Restricted Attributes Configuration
#*******************************************************************************
# The following attributes are restricted to users outside the oneadmin group
#*******************************************************************************
VM_RESTRICTED_ATTR = "CONTEXT/FILES"
VM_RESTRICTED_ATTR = "NIC/MAC"
VM_RESTRICTED_ATTR = "NIC/VLAN_ID"
2013-02-06 16:34:46 +01:00
2013-02-08 20:14:41 +01:00
#VM_RESTRICTED_ATTR = "RANK"
#VM_RESTRICTED_ATTR = "SCHED_RANK"
#VM_RESTRICTED_ATTR = "REQUIREMENTS"
#VM_RESTRICTED_ATTR = "SCHED_REQUIREMENTS"
2012-01-23 08:18:12 -08:00
IMAGE_RESTRICTED_ATTR = "SOURCE"
2013-06-26 18:41:46 +02:00
#*******************************************************************************
# OneGate
#*******************************************************************************
2013-07-05 01:38:24 +02:00
#ONEGATE_ENDPOINT = "http://frontend:5030"