hypervisor/storage: fix scope
Close #309 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
parent
fe2c6c63d6
commit
f7733edfe4
@ -136,13 +136,13 @@ Host *
|
||||
Exec <<| tag == 'get_or_set_virsh_secret' |>>
|
||||
Exec <<| tag == 'set_secret_value_virsh' |>>
|
||||
|
||||
Ceph::Key <<| title == $nova_user |>>
|
||||
if defined(Ceph::Key[$nova_user]) {
|
||||
Ceph::Key <<| title == $nova_rbd_user |>>
|
||||
if defined(Ceph::Key[$nova_rbd_user]) {
|
||||
file { '/etc/ceph/ceph.client.nova.keyring':
|
||||
owner => 'nova',
|
||||
group => 'nova',
|
||||
mode => '0400',
|
||||
require => Ceph::Key[$nova_user]
|
||||
require => Ceph::Key[$nova_rbd_user]
|
||||
}
|
||||
}
|
||||
Concat::Fragment <<| title == 'ceph-client-os' |>>
|
||||
|
@ -73,13 +73,13 @@ class cloud::volume::storage(
|
||||
rbd_max_clone_depth => $cinder_rbd_max_clone_depth,
|
||||
}
|
||||
|
||||
Ceph::Key <<| title == $cinder_user |>>
|
||||
if defined(Ceph::Key[$cinder_user]) {
|
||||
Ceph::Key <<| title == $cinder_rbd_user |>>
|
||||
if defined(Ceph::Key[$cinder_rbd_user]) {
|
||||
file { '/etc/ceph/ceph.client.cinder.keyring':
|
||||
owner => 'cinder',
|
||||
group => 'cinder',
|
||||
mode => '0400',
|
||||
require => Ceph::Key[$cinder_user]
|
||||
require => Ceph::Key[$cinder_rbd_user]
|
||||
}
|
||||
}
|
||||
Concat::Fragment <<| title == 'ceph-client-os' |>>
|
||||
|
Loading…
x
Reference in New Issue
Block a user