
- This puppet-lint plugin checks if all parameters are documented\ - Fix some unaligned arrows - Remove trailing whitespace! - Add missing doc - https://github.com/domcleal/puppet-lint-param-docs Change-Id: I8f089eceb3ce3532d763807e5e412d1cc1d07b6b Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
34 lines
838 B
Puppet
34 lines
838 B
Puppet
# == Class: cinder::backends
|
|
#
|
|
# Class to set the enabled_backends list
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*enabled_backends*]
|
|
# (Required) a list of ini sections to enable.
|
|
# This should contain names used in ceph::backend::* resources.
|
|
# Example: ['volume1', 'volume2', 'sata3']
|
|
#
|
|
# === Deprecated Parameters
|
|
#
|
|
# [*default_volume_type*]
|
|
# (Deprecated) Does nothing.
|
|
#
|
|
# Author: Andrew Woodward <awoodward@mirantis.com>
|
|
class cinder::backends (
|
|
$enabled_backends = undef,
|
|
# DEPRECATED
|
|
$default_volume_type = false
|
|
){
|
|
|
|
# Maybe this could be extented to dynamicly find the enabled names
|
|
cinder_config {
|
|
'DEFAULT/enabled_backends': value => join($enabled_backends, ',');
|
|
}
|
|
|
|
if $default_volume_type {
|
|
fail('The default_volume_type parameter is deprecated in this class, you should declare it in cinder::api.')
|
|
}
|
|
|
|
}
|