puppet-cinder/manifests/scheduler/filter.pp
Denis Egorenko 20b6863d6a Add cinder::scheduler::filter for managing scheduler.filter
This patch is aim to add a new class to manage the default
filters param in cinder.scheduler.

Change-Id: Ie37c3708f66c89d7052f300457b76d29fffb449f
2015-05-13 15:24:03 +03:00

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
}
}
}