![Emilien Macchi](/assets/img/avatar_default.png)
Use new parameters for Juno like it's documented here: http://docs.openstack.org/trunk/config-reference/content/glance-conf-changes-master.html http://docs.openstack.org/trunk/config-reference/content/configuring-image-service-backends.html * Use [glance_store] section * Update prefix when needed From Change-Id: I096b16c33c493270422113e0107a100f967debc6 Closes-bug: 1391475 Co-Authored-By: Emilien Macchi <emilien.macchi@enovance.com> Change-Id: I5174e1b6a6d4ac978680325a5fad46001c5ca59f
43 lines
1.2 KiB
Puppet
43 lines
1.2 KiB
Puppet
#
|
|
# configures the storage backend for glance
|
|
# as a rbd instance
|
|
#
|
|
# $rbd_store_user - Optional.
|
|
#
|
|
# $rbd_store_pool - Optional. Default:'images'
|
|
#
|
|
# $rbd_store_ceph_conf - Optional. Default:'/etc/ceph/ceph.conf'
|
|
#
|
|
# $rbd_store_chunk_size - Optional. Default:'8'
|
|
#
|
|
# $show_image_direct_url - Optional. Enables direct COW from glance to rbd
|
|
# DEPRECATED, use show_image_direct_url in glance::api
|
|
|
|
class glance::backend::rbd(
|
|
$rbd_store_user = undef,
|
|
$rbd_store_ceph_conf = '/etc/ceph/ceph.conf',
|
|
$rbd_store_pool = 'images',
|
|
$rbd_store_chunk_size = '8',
|
|
$show_image_direct_url = undef,
|
|
) {
|
|
include glance::params
|
|
|
|
if $show_image_direct_url {
|
|
notice('parameter show_image_direct_url is deprecated, use parameter in glance::api')
|
|
}
|
|
|
|
glance_api_config {
|
|
'glance_store/rbd_store_ceph_conf': value => $rbd_store_ceph_conf;
|
|
'glance_store/rbd_store_user': value => $rbd_store_user;
|
|
'glance_store/rbd_store_pool': value => $rbd_store_pool;
|
|
'glance_store/rbd_store_chunk_size': value => $rbd_store_chunk_size;
|
|
'glance_store/default_store': value => 'rbd';
|
|
}
|
|
|
|
package { 'python-ceph':
|
|
ensure => 'present',
|
|
name => $::glance::params::pyceph_package_name,
|
|
}
|
|
|
|
}
|