image: fix scope for ceph
Close #309 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
parent
f7733edfe4
commit
e05334dd91
@ -136,13 +136,13 @@ class cloud::image(
|
||||
rbd_store_pool => $glance_rbd_pool
|
||||
}
|
||||
|
||||
Ceph::Key <<| title == $glance_user |>>
|
||||
if defined(Ceph::Key[$glance_user]) {
|
||||
Ceph::Key <<| title == $glance_rbd_user |>>
|
||||
if defined(Ceph::Key[$glance_rbd_user]) {
|
||||
file { '/etc/ceph/ceph.client.glance.keyring':
|
||||
owner => 'glance',
|
||||
group => 'glance',
|
||||
mode => '0400',
|
||||
require => Ceph::Key[$glance_user]
|
||||
require => Ceph::Key[$glance_rbd_user]
|
||||
}
|
||||
}
|
||||
Concat::Fragment <<| title == 'ceph-client-os' |>>
|
||||
|
Loading…
x
Reference in New Issue
Block a user