7c69719389a3548cb7c7b606f3ce4ad29929859e
[mirror/dsa-puppet.git] / 3rdparty / modules / cinder / manifests / backends.pp
1 # == Class: cinder::backends
2 #
3 # Class to set the enabled_backends list
4 #
5 # === Parameters
6 #
7 # [*enabled_backends*]
8 #   (required) a list of ini sections to enable.
9 #     This should contain names used in ceph::backend::* resources.
10 #     Example: ['volume1', 'volume2', 'sata3']
11 #
12 # Author: Andrew Woodward <awoodward@mirantis.com>
13 class cinder::backends (
14   $enabled_backends    = undef,
15   # DEPRECATED
16   $default_volume_type = false
17   ){
18
19   # Maybe this could be extented to dynamicly find the enabled names
20   cinder_config {
21     'DEFAULT/enabled_backends': value => join($enabled_backends, ',');
22   }
23
24   if $default_volume_type {
25     fail('The default_volume_type parameter is deprecated in this class, you should declare it in cinder::api.')
26   }
27
28 }