20b6863d6a
This patch is aim to add a new class to manage the default filters param in cinder.scheduler. Change-Id: Ie37c3708f66c89d7052f300457b76d29fffb449f
24 lines
554 B
Puppet
24 lines
554 B
Puppet
# == Class: cinder:scheduler::filter
|
|
#
|
|
# This class is aim to configure cinder.scheduler filter
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*scheduler_default_filters*]
|
|
# A comma separated list of filters to be used by default
|
|
# Defaults to false
|
|
|
|
class cinder::scheduler::filter (
|
|
$scheduler_default_filters = false,
|
|
) {
|
|
|
|
if ($scheduler_default_filters) {
|
|
cinder_config { 'DEFAULT/scheduler_default_filters': value => join($scheduler_default_filters,',')
|
|
}
|
|
} else {
|
|
cinder_config { 'DEFAULT/scheduler_default_filters': ensure => absent
|
|
}
|
|
}
|
|
|
|
}
|