Puppet Class: opennebula::oned_conf

Inherits:
opennebula::params
Defined in:
manifests/oned_conf.pp

Overview

Configure oned.conf.

This class is designed to be used to configure oned.conf.

Parameters

A lot of these parameters are documented on the Opennebula website in more detail.

manager_time

Optional

host_monitoring_interval

Optional

vm_polling_interval

Optional

vm_dir

Optional

scripts_remote_dir

Optional

port

Optional

db_backend

Optional

db_server

Optional

db_user

Optional

db_name

Optional

db_port

Optional

vnc_base_port

Optional

debug_level

Optional

network_size

Optional

mac_prefix

Optional

image_repository_path

Optional

default_image_path

Optional

default_device_prefix

Optional

oned_conf_path

Optional

hooks

Optional

Variables

N/A

Examples

Basic example:

class { "opennebula::oned_conf":
  port => 2633,
}

Authors

Ken Barber <ken@bob.sh>

Copyright 2011 Puppetlabs Inc, unless otherwise noted.

Parameters:

  • manager_timer (Any) (defaults to: 15)
  • host_monitoring_interval (Any) (defaults to: 600)
  • vm_polling_interval (Any) (defaults to: 600)
  • vm_dir (Any) (defaults to: "/var/lib/one")
  • scripts_remote_dir (Any) (defaults to: "/var/tmp/one")
  • port (Any) (defaults to: 2633)
  • db_backend (Any) (defaults to: "sqlite")
  • db_server (Any) (defaults to: undef)
  • db_user (Any) (defaults to: undef)
  • db_passwd (Any) (defaults to: undef)
  • db_name (Any) (defaults to: undef)
  • db_port (Any) (defaults to: undef)
  • vnc_base_port (Any) (defaults to: 5900)
  • debug_level (Any) (defaults to: 3)
  • network_size (Any) (defaults to: 254)
  • mac_prefix (Any) (defaults to: "02:00")
  • image_repository_path (Any) (defaults to: "/var/lib/one/images/")
  • default_image_type (Any) (defaults to: "OS")
  • default_device_prefix (Any) (defaults to: "hd")
  • hooks (Any) (defaults to: undef)
  • oned_conf_path (Any) (defaults to: $opennebula::params::oned_conf_path)


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
# File 'manifests/oned_conf.pp', line 70

class opennebula::oned_conf (
  
  $manager_timer = 15,
  $host_monitoring_interval = 600,
  $vm_polling_interval = 600,
  $vm_dir = "/var/lib/one",
  $scripts_remote_dir = "/var/tmp/one",
  $port = 2633,
  $db_backend = "sqlite",
  $db_server = undef,
  $db_user = undef,
  $db_passwd = undef,
  $db_name = undef,
  $db_port = undef,
  $vnc_base_port = 5900,
  $debug_level = 3,
  $network_size = 254,
  $mac_prefix = "02:00",
  $image_repository_path = "/var/lib/one/images/",
  $default_image_type = "OS",
  $default_device_prefix = "hd",
  $hooks = undef,
  $oned_conf_path = $opennebula::params::oned_conf_path
  
  ) inherits opennebula::params {
    
  #################
  # Configuration #
  #################
  file { $oned_conf_path:
    content => template("${module_name}/oned.conf"),
    owner => "root",
    group => "root",
    mode => "0644",
    require => Package[$controller_package],
  }
}