
The backend class has been removed and the related backend config service has been coupled with the file and swift classes. This is to reduce the code complexity.
30 lines
726 B
Puppet
30 lines
726 B
Puppet
#
|
|
# used to configure file backends for glance
|
|
#
|
|
# $filesystem_store_datadir - Location where dist images are stored when
|
|
# default_store == file.
|
|
# Optional. Default: /var/lib/glance/images/
|
|
class glance::backend::file(
|
|
$filesystem_store_datadir = '/var/lib/glance/images/'
|
|
) inherits glance::api {
|
|
|
|
#
|
|
# modeled as its own config define so that any attempts to
|
|
# define multiple backends will fail
|
|
#
|
|
glance::api::config { 'backend':
|
|
config => {
|
|
'default_store' => 'file',
|
|
},
|
|
order => '04',
|
|
}
|
|
|
|
# configure directory where files should be stored
|
|
glance::api::config { 'file':
|
|
config => {
|
|
'filesystem_store_datadir' => $filesystem_store_datadir
|
|
},
|
|
order => '05',
|
|
}
|
|
}
|