eb1a114e5a
This changes the in-class documentation to reflect the correct module namespace (scheduler vs. schedule) Change-Id: Ic211b4287aa5fdc960351d3753e269c2ba2d5485
37 lines
810 B
Puppet
37 lines
810 B
Puppet
# == Class: nova::scheduler
|
|
#
|
|
# Install and manage nova scheduler
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*enabled*]
|
|
# (optional) Whether to run the scheduler service
|
|
# Defaults to false
|
|
#
|
|
# [*manage_service*]
|
|
# (optional) Whether to start/stop the service
|
|
# Defaults to true
|
|
#
|
|
# [*ensure_package*]
|
|
# (optional) The state of the scheduler package
|
|
# Defaults to 'present'
|
|
#
|
|
class nova::scheduler(
|
|
$enabled = false,
|
|
$manage_service = true,
|
|
$ensure_package = 'present'
|
|
) {
|
|
|
|
include ::nova::db
|
|
include ::nova::params
|
|
|
|
nova::generic_service { 'scheduler':
|
|
enabled => $enabled,
|
|
manage_service => $manage_service,
|
|
package_name => $::nova::params::scheduler_package_name,
|
|
service_name => $::nova::params::scheduler_service_name,
|
|
ensure_package => $ensure_package,
|
|
}
|
|
|
|
}
|