Guest User

Untitled

a guest
Jul 15th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.70 KB | None | 0 0
  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. #
  15. # VM_POLLING_INTERVAL: Time in seconds between virtual machine monitorization.
  16. # (use 0 to disable VM monitoring).
  17. # VM_PER_INTERVAL: Number of VMs monitored in each interval.
  18. #
  19. # VM_DIR: Remote path to store the VM images, it should be shared between all
  20. # the cluster nodes to perform live migrations. This variable is the default
  21. # for all the hosts in the cluster. VM_DIR IS ONLY FOR THE NODES AND *NOT* THE
  22. # FRONT-END
  23. #
  24. # SCRIPTS_REMOTE_DIR: Remote path to store the monitoring and VM management
  25. # scripts.
  26. #
  27. # PORT: Port where oned will listen for xmlrpc calls.
  28. #
  29. # DB: Configuration attributes for the database backend
  30. # backend : can be sqlite or mysql (default is sqlite)
  31. # server : (mysql) host name or an IP address for the MySQL server
  32. # port : (mysql) port for the connection to the server.
  33. # If set to 0, the default port is used.
  34. # user : (mysql) user's MySQL login ID
  35. # passwd : (mysql) the password for user
  36. # db_name : (mysql) the database name
  37. #
  38. # VNC_BASE_PORT: VNC ports for VMs can be automatically set to VNC_BASE_PORT +
  39. # VMID
  40. #
  41. # DEBUG_LEVEL: 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
  42. #*******************************************************************************
  43.  
  44. #MANAGER_TIMER = 30
  45.  
  46. HOST_MONITORING_INTERVAL = 600
  47. #HOST_PER_INTERVAL = 15
  48.  
  49. VM_POLLING_INTERVAL = 600
  50. #VM_PER_INTERVAL = 5
  51.  
  52. #VM_DIR=/srv/cloud/one/var
  53.  
  54. SCRIPTS_REMOTE_DIR=/var/tmp/one
  55.  
  56. PORT = 2633
  57.  
  58. #DB = [ backend = "sqlite" ]
  59.  
  60. # Sample configuration for MySQL
  61. DB = [ backend = "mysql",
  62. server = "localhost",
  63. port = 0,
  64. user = "oneadmin",
  65. passwd = "powerpuff",
  66. db_name = "opennebula" ]
  67.  
  68. VNC_BASE_PORT = 5900
  69.  
  70. DEBUG_LEVEL = 3
  71.  
  72. #*******************************************************************************
  73. # Physical Networks configuration
  74. #*******************************************************************************
  75. # NETWORK_SIZE: Here you can define the default size for the virtual networks
  76. #
  77. # MAC_PREFIX: Default MAC prefix to be used to create the auto-generated MAC
  78. # addresses is defined here (this can be overrided by the Virtual Network
  79. # template)
  80. #*******************************************************************************
  81.  
  82. NETWORK_SIZE = 254
  83.  
  84. MAC_PREFIX = "02:00"
  85.  
  86. #*******************************************************************************
  87. # Image Repository Configuration
  88. #*******************************************************************************
  89. # DEFAULT_IMAGE_TYPE: This can take values
  90. # OS Image file holding an operating system
  91. # CDROM Image file holding a CDROM
  92. # DATABLOCK Image file holding a datablock,
  93. # always created as an empty block
  94. # DEFAULT_DEVICE_PREFIX: This can be set to
  95. # hd IDE prefix
  96. # sd SCSI
  97. # xvd XEN Virtual Disk
  98. # vd KVM virtual disk
  99. #*******************************************************************************
  100. DEFAULT_IMAGE_TYPE = "OS"
  101. DEFAULT_DEVICE_PREFIX = "hd"
  102.  
  103. #*******************************************************************************
  104. # Information Driver Configuration
  105. #*******************************************************************************
  106. # You can add more information managers with different configurations but make
  107. # sure it has different names.
  108. #
  109. # name : name for this information manager
  110. #
  111. # executable: path of the information driver executable, can be an
  112. # absolute path or relative to $ONE_LOCATION/lib/mads (or
  113. # /usr/lib/one/mads/ if OpenNebula was installed in /)
  114. #
  115. # arguments : for the driver executable, usually a probe configuration file,
  116. # can be an absolute path or relative to $ONE_LOCATION/etc (or
  117. # /etc/one/ if OpenNebula was installed in /)
  118. #*******************************************************************************
  119.  
  120. #-------------------------------------------------------------------------------
  121. # KVM Information Driver Manager Configuration
  122. # -r number of retries when monitoring a host
  123. # -t number of threads, i.e. number of hosts monitored at the same time
  124. #-------------------------------------------------------------------------------
  125. IM_MAD = [
  126. name = "im_kvm",
  127. executable = "one_im_ssh",
  128. arguments = "-r 0 -t 15 kvm" ]
  129. #-------------------------------------------------------------------------------
  130.  
  131. #-------------------------------------------------------------------------------
  132. # XEN Information Driver Manager Configuration
  133. # -r number of retries when monitoring a host
  134. # -t number of threads, i.e. number of hosts monitored at the same time
  135. #-------------------------------------------------------------------------------
  136. #IM_MAD = [
  137. # name = "im_xen",
  138. # executable = "one_im_ssh",
  139. # arguments = "xen" ]
  140. #-------------------------------------------------------------------------------
  141.  
  142. #-------------------------------------------------------------------------------
  143. # VMware Information Driver Manager Configuration
  144. # -r number of retries when monitoring a host
  145. # -t number of threads, i.e. number of hosts monitored at the same time
  146. #-------------------------------------------------------------------------------
  147. #IM_MAD = [
  148. # name = "im_vmware",
  149. # executable = "one_im_sh",
  150. # arguments = "-t 15 -r 0 vmware" ]
  151. #-------------------------------------------------------------------------------
  152.  
  153. #-------------------------------------------------------------------------------
  154. # EC2 Information Driver Manager Configuration
  155. #-------------------------------------------------------------------------------
  156. #IM_MAD = [
  157. # name = "im_ec2",
  158. # executable = "one_im_ec2",
  159. # arguments = "im_ec2/im_ec2.conf" ]
  160. #-------------------------------------------------------------------------------
  161.  
  162. #-----------------------------------------------------------------------------
  163. # Ganglia Information Driver Manager Configuration
  164. #-----------------------------------------------------------------------------
  165. #IM_MAD = [
  166. # name = "im_ganglia",
  167. # executable = "one_im_sh",
  168. # arguments = "ganglia" ]
  169. #-----------------------------------------------------------------------------
  170.  
  171. #-------------------------------------------------------------------------------
  172. # Dummy Information Driver Manager Configuration
  173. #-------------------------------------------------------------------------------
  174. #IM_MAD = [ name="im_dummy", executable="one_im_dummy"]
  175. #-------------------------------------------------------------------------------
  176.  
  177. #*******************************************************************************
  178. # Virtualization Driver Configuration
  179. #*******************************************************************************
  180. # You can add more virtualization managers with different configurations but
  181. # make sure it has different names.
  182. #
  183. # name : name of the virtual machine manager driver
  184. #
  185. # executable: path of the virtualization driver executable, can be an
  186. # absolute path or relative to $ONE_LOCATION/lib/mads (or
  187. # /usr/lib/one/mads/ if OpenNebula was installed in /)
  188. #
  189. # arguments : for the driver executable
  190. #
  191. # default : default values and configuration parameters for the driver, can
  192. # be an absolute path or relative to $ONE_LOCATION/etc (or
  193. # /etc/one/ if OpenNebula was installed in /)
  194. #
  195. # type : driver type, supported drivers: xen, kvm, xml
  196. #*******************************************************************************
  197.  
  198. #-------------------------------------------------------------------------------
  199. # KVM Virtualization Driver Manager Configuration
  200. # -r number of retries when monitoring a host
  201. # -t number of threads, i.e. number of hosts monitored at the same time
  202. # -l <actions[=command_name]> actions executed locally, command can be
  203. # overridden for each action.
  204. # Valid actions: deploy, shutdown, cancel, save, restore, migrate, poll
  205. # An example: "-l migrate,poll=poll_ganglia,save"
  206. #-------------------------------------------------------------------------------
  207. VM_MAD = [
  208. name = "vmm_kvm",
  209. executable = "one_vmm_exec",
  210. arguments = "-t 15 -r 0 kvm",
  211. default = "vmm_exec/vmm_exec_kvm.conf",
  212. type = "kvm" ]
  213. #-------------------------------------------------------------------------------
  214.  
  215. #-------------------------------------------------------------------------------
  216. # XEN Virtualization Driver Manager Configuration
  217. # -r number of retries when monitoring a host
  218. # -t number of threads, i.e. number of hosts monitored at the same time
  219. # -l <actions[=command_name]> actions executed locally, command can be
  220. # overridden for each action.
  221. # Valid actions: deploy, shutdown, cancel, save, restore, migrate, poll
  222. # An example: "-l migrate,poll=poll_ganglia,save"
  223. #-------------------------------------------------------------------------------
  224. #VM_MAD = [
  225. # name = "vmm_xen",
  226. # executable = "one_vmm_exec",
  227. # arguments = "-t 15 -r 0 xen",
  228. # default = "vmm_exec/vmm_exec_xen.conf",
  229. # type = "xen" ]
  230. #-------------------------------------------------------------------------------
  231.  
  232. #-------------------------------------------------------------------------------
  233. # VMware Virtualization Driver Manager Configuration
  234. # -r number of retries when monitoring a host
  235. # -t number of threads, i.e. number of hosts monitored at the same time
  236. #-------------------------------------------------------------------------------
  237. #VM_MAD = [
  238. # name = "vmm_vmware",
  239. # executable = "one_vmm_sh",
  240. # arguments = "-t 15 -r 0 vmware",
  241. # default = "vmm_exec/vmm_exec_vmware.conf",
  242. # type = "vmware" ]
  243. #-------------------------------------------------------------------------------
  244.  
  245. #-------------------------------------------------------------------------------
  246. # EC2 Virtualization Driver Manager Configuration
  247. # arguments: default values for the EC2 driver, can be an absolute path or
  248. # relative to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was
  249. # installed in /).
  250. #-------------------------------------------------------------------------------
  251. #VM_MAD = [
  252. # name = "vmm_ec2",
  253. # executable = "one_vmm_ec2",
  254. # arguments = "vmm_ec2/vmm_ec2.conf",
  255. # type = "xml" ]
  256. #-------------------------------------------------------------------------------
  257.  
  258. #-------------------------------------------------------------------------------
  259. # Dummy Virtualization Driver Configuration
  260. #-------------------------------------------------------------------------------
  261. #VM_MAD = [ name="vmm_dummy", executable="one_vmm_dummy", type="xml" ]
  262. #-------------------------------------------------------------------------------
  263.  
  264. #*******************************************************************************
  265. # Transfer Manager Driver Configuration
  266. #*******************************************************************************
  267. # You can add more transfer managers with different configurations but make
  268. # sure it has different names.
  269. # name : name for this transfer driver
  270. #
  271. # executable: path of the transfer driver executable, can be an
  272. # absolute path or relative to $ONE_LOCATION/lib/mads (or
  273. # /usr/lib/one/mads/ if OpenNebula was installed in /)
  274. #
  275. # arguments : for the driver executable, usually a commands configuration file
  276. # , can be an absolute path or relative to $ONE_LOCATION/etc (or
  277. # /etc/one/ if OpenNebula was installed in /)
  278. #*******************************************************************************
  279.  
  280. #-------------------------------------------------------------------------------
  281. # SHARED Transfer Manager Driver Configuration
  282. #-------------------------------------------------------------------------------
  283. TM_MAD = [
  284. name = "tm_shared",
  285. executable = "one_tm",
  286. arguments = "tm_shared/tm_shared.conf" ]
  287. #-------------------------------------------------------------------------------
  288.  
  289. #-------------------------------------------------------------------------------
  290. # SSH Transfer Manager Driver Configuration
  291. #-------------------------------------------------------------------------------
  292. #TM_MAD = [
  293. # name = "tm_ssh",
  294. # executable = "one_tm",
  295. # arguments = "tm_ssh/tm_ssh.conf" ]
  296. #-------------------------------------------------------------------------------
  297.  
  298. #-------------------------------------------------------------------------------
  299. # Dummy Transfer Manager Driver Configuration
  300. #-------------------------------------------------------------------------------
  301. #TM_MAD = [
  302. # name = "tm_dummy",
  303. # executable = "one_tm",
  304. # arguments = "tm_dummy/tm_dummy.conf" ]
  305. #-------------------------------------------------------------------------------
  306.  
  307. #-------------------------------------------------------------------------------
  308. # LVM Transfer Manager Driver Configuration
  309. #-------------------------------------------------------------------------------
  310. #TM_MAD = [
  311. # name = "tm_lvm",
  312. # executable = "one_tm",
  313. # arguments = "tm_lvm/tm_lvm.conf" ]
  314. #-------------------------------------------------------------------------------
  315.  
  316. #-------------------------------------------------------------------------------
  317. # VMware DataStore Transfer Manager Driver Configuration
  318. #-------------------------------------------------------------------------------
  319. #TM_MAD = [
  320. # name = "tm_vmware",
  321. # executable = "one_tm",
  322. # arguments = "tm_vmware/tm_vmware.conf" ]
  323. #-------------------------------------------------------------------------------
  324.  
  325. #*******************************************************************************
  326. # Image Manager Driver Configuration
  327. #*******************************************************************************
  328. # Drivers to manage the image repository, specialized for the storage backend
  329. # executable: path of the transfer driver executable, can be an
  330. # absolute path or relative to $ONE_LOCATION/lib/mads (or
  331. # /usr/lib/one/mads/ if OpenNebula was installed in /)
  332. #
  333. # arguments : for the driver executable
  334. #*******************************************************************************
  335. #-------------------------------------------------------------------------------
  336. # FS based Image Manager Driver Configuration
  337. # -t number of threads, i.e. number of repo operations at the same time
  338. #-------------------------------------------------------------------------------
  339. IMAGE_MAD = [
  340. executable = "one_image",
  341. arguments = "fs -t 15" ]
  342. #-------------------------------------------------------------------------------
  343.  
  344. #*******************************************************************************
  345. # Hook Manager Configuration
  346. #*******************************************************************************
  347. # The Driver (HM_MAD), used to execute the Hooks
  348. # executable: path of the hook driver executable, can be an
  349. # absolute path or relative to $ONE_LOCATION/lib/mads (or
  350. # /usr/lib/one/mads/ if OpenNebula was installed in /)
  351. #
  352. # arguments : for the driver executable, can be an absolute path or relative
  353. # to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was installed
  354. # in /)
  355. #
  356. # Virtual Machine Hooks (VM_HOOK) defined by:
  357. # name : for the hook, useful to track the hook (OPTIONAL)
  358. # on : when the hook should be executed,
  359. # - CREATE, when the VM is created (onevm create)
  360. # - PROLOG, when the VM is in the prolog state
  361. # - RUNNING, after the VM is successfully booted
  362. # - SHUTDOWN, after the VM is shutdown
  363. # - STOP, after the VM is stopped (including VM image transfers)
  364. # - DONE, after the VM is deleted or shutdown
  365. # - FAILED, when the VM enters the failed state
  366. # command : path is relative to $ONE_LOCATION/var/remotes/hook
  367. # (self-contained) or to /var/lib/one/remotes/hook (system-wide).
  368. # That directory will be copied on the hosts under
  369. # SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
  370. # on the target host
  371. # arguments : for the hook. You can access to VM information with $
  372. # - $VMID, the ID of the virtual machine
  373. # - $TEMPLATE, the VM template in xml and base64 encoded
  374. # remote : values,
  375. # - YES, The hook is executed in the host where the VM was
  376. # allocated
  377. # - NO, The hook is executed in the OpenNebula server (default)
  378. #
  379. #
  380. # Host Hooks (HOST_HOOK) defined by:
  381. # name : for the hook, useful to track the hook (OPTIONAL)
  382. # on : when the hook should be executed,
  383. # - CREATE, when the Host is created (onehost create)
  384. # - ERROR, when the Host enters the error state
  385. # - DISABLE, when the Host is disabled
  386. # command : path is relative to $ONE_LOCATION/var/remotes/hook
  387. # (self-contained) or to /var/lib/one/remotes/hook (system-wide).
  388. # That directory will be copied on the hosts under
  389. # SCRIPTS_REMOTE_DIR. It can be an absolute path that must exist
  390. # on the target host.
  391. # arguments : for the hook. You can use the following Host information:
  392. # - $HID, the ID of the host
  393. # - $TEMPLATE, the Host template in xml and base64 encoded
  394. # remote : values,
  395. # - YES, The hook is executed in the host
  396. # - NO, The hook is executed in the OpenNebula server (default)
  397. #-------------------------------------------------------------------------------
  398.  
  399. HM_MAD = [
  400. executable = "one_hm" ]
  401.  
  402. #-------------------------------------------------------------------------------
  403.  
  404. #*******************************************************************************
  405. # Fault Tolerance Hooks
  406. #*******************************************************************************
  407. # This hook is used to perform recovery actions when a host fails. The VMs
  408. # running in the host can be deleted (use -d option) or resubmitted (-r) in
  409. # other host
  410. # Last argument (force) can be "y", so suspended VMs in the host will be
  411. # resubmitted/deleted, or "n", so suspended VMs in the host will be ignored
  412. #
  413. #HOST_HOOK = [
  414. # name = "error",
  415. # on = "ERROR",
  416. # command = "ft/host_error.rb",
  417. # arguments = "$HID -r n",
  418. # remote = "no" ]
  419. #-------------------------------------------------------------------------------
  420. # These two hooks can be used to automatically delete or resubmit VMs that reach
  421. # the "failed" state. This way, the administrator doesn't have to interact
  422. # manually to release its resources or retry the deployment.
  423. #
  424. #
  425. # Only one of them should be uncommented.
  426. #-------------------------------------------------------------------------------
  427. #
  428. #VM_HOOK = [
  429. # name = "on_failure_delete",
  430. # on = "FAILED",
  431. # command = "/usr/bin/env onevm delete",
  432. # arguments = "$VMID" ]
  433. #
  434. #VM_HOOK = [
  435. # name = "on_failure_resubmit",
  436. # on = "FAILED",
  437. # command = "/usr/bin/env onevm resubmit",
  438. # arguments = "$VMID" ]
  439. #-------------------------------------------------------------------------------
  440.  
  441. #*******************************************************************************
  442. # Auth Manager Configuration
  443. #*******************************************************************************
  444. # AUTH_MAD: The Driver that will be used to authenticate (authn) and
  445. # authorize (authz) OpenNebula requests. If defined OpenNebula will use the
  446. # built-in auth policies.
  447. #
  448. # executable: path of the auth driver executable, can be an
  449. # absolute path or relative to $ONE_LOCATION/lib/mads (or
  450. # /usr/lib/one/mads/ if OpenNebula was installed in /)
  451. #
  452. # arguments :
  453. # --authn: list of authentication modules separated by commas, if not
  454. # defined all the modules available will be enabled
  455. # --authz: authorization module
  456. #
  457. # SESSION_EXPIRATION_TIME: Time in seconds to keep an authenticated token as
  458. # valid. During this time, the driver is not used. Use 0 to disable session
  459. # caching
  460. #
  461. # ENABLE_OTHER_PERMISSIONS: Whether or not to enable the permissions for
  462. # 'other'. Users in the oneadmin group will still be able to change
  463. # these permissions. Values: YES or NO
  464. #*******************************************************************************
  465.  
  466. AUTH_MAD = [
  467. executable = "one_auth_mad",
  468. arguments = "--authn ssh,x509,ldap,server_cipher,server_x509"
  469. # arguments = "--authz quota --authn ssh,x509,ldap,server_cipher,server_x509"
  470. ]
  471.  
  472. SESSION_EXPIRATION_TIME = 900
  473.  
  474. #ENABLE_OTHER_PERMISSIONS = "YES"
Add Comment
Please, Sign In to add comment