123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- # == Class: nova::scheduler
- #
- # Install and manage nova scheduler
- #
- # === Parameters:
- #
- # [*enabled*]
- # (optional) Whether to run the scheduler service
- # Defaults to true
- #
- # [*manage_service*]
- # (optional) Whether to start/stop the service
- # Defaults to true
- #
- # [*ensure_package*]
- # (optional) The state of the scheduler package
- # Defaults to 'present'
- #
- # [*scheduler_driver*]
- # (optional) Default driver to use for the scheduler
- # Defaults to 'filter_scheduler'
- #
- class nova::scheduler(
- $enabled = true,
- $manage_service = true,
- $ensure_package = 'present',
- $scheduler_driver = 'filter_scheduler',
- ) {
- include ::nova::deps
- 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,
- }
- nova_config {
- 'scheduler/driver': value => $scheduler_driver;
- }
- # TODO(aschultz): old options, remove in P
- nova_config {
- 'DEFAULT/scheduler_driver': ensure => 'absent';
- }
- }
|