
Currently using a string value for the enabled_share_backends parameter causes the following error, which is not quite clear for users. ~~~ Error: Evaluation Error: Error while evaluating a Function Call, 'join' parameter 'arg' expects an Array value, got String ... ~~~ This change allows usage of a single string value, as is done for the other ListOpts, because there is no logic which actually requires an array value. Change-Id: I786e5d477131fa60502a9985f0db4b19f418ce9b
25 lines
611 B
Puppet
25 lines
611 B
Puppet
# == Class: manila::backends
|
|
#
|
|
# Class to set the enabled_backends list
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*enabled_share_backends*]
|
|
# (Required) a list of ini sections to enable.
|
|
# This should contain names used in ceph::backend::* resources.
|
|
# Example: ['share1', 'share2', 'sata3']
|
|
#
|
|
# Author: Andrew Woodward <awoodward@mirantis.com>
|
|
class manila::backends (
|
|
$enabled_share_backends = undef
|
|
) {
|
|
|
|
include manila::deps
|
|
|
|
# Maybe this could be extended to dynamically find the enabled names
|
|
manila_config {
|
|
'DEFAULT/enabled_share_backends': value => join(any2array($enabled_share_backends), ',');
|
|
}
|
|
|
|
}
|