rbd: Ensure keyring has right permissions
Close bug #309 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
parent
8e537e4b50
commit
118d3bd400
@ -140,13 +140,11 @@ Host *
|
|||||||
Exec <<| tag == 'set_secret_value_virsh' |>>
|
Exec <<| tag == 'set_secret_value_virsh' |>>
|
||||||
|
|
||||||
Ceph::Key <<| title == $cinder_rbd_user |>>
|
Ceph::Key <<| title == $cinder_rbd_user |>>
|
||||||
if defined(Ceph::Key[$cinder_rbd_user]) {
|
file { "/etc/ceph/ceph.client.${cinder_rbd_user}.keyring":
|
||||||
file { "/etc/ceph/ceph.client.${cinder_rbd_user}.keyring":
|
owner => 'nova',
|
||||||
owner => 'nova',
|
group => 'nova',
|
||||||
group => 'nova',
|
mode => '0400',
|
||||||
mode => '0400',
|
require => Ceph::Key[$cinder_rbd_user]
|
||||||
require => Ceph::Key[$cinder_rbd_user]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Concat::Fragment <<| title == 'ceph-client-os' |>>
|
Concat::Fragment <<| title == 'ceph-client-os' |>>
|
||||||
}
|
}
|
||||||
|
@ -152,13 +152,11 @@ class cloud::image(
|
|||||||
}
|
}
|
||||||
|
|
||||||
Ceph::Key <<| title == $glance_rbd_user |>>
|
Ceph::Key <<| title == $glance_rbd_user |>>
|
||||||
if defined(Ceph::Key[$glance_rbd_user]) {
|
file { '/etc/ceph/ceph.client.glance.keyring':
|
||||||
file { '/etc/ceph/ceph.client.glance.keyring':
|
owner => 'glance',
|
||||||
owner => 'glance',
|
group => 'glance',
|
||||||
group => 'glance',
|
mode => '0400',
|
||||||
mode => '0400',
|
require => Ceph::Key[$glance_rbd_user]
|
||||||
require => Ceph::Key[$glance_rbd_user]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Concat::Fragment <<| title == 'ceph-client-os' |>>
|
Concat::Fragment <<| title == 'ceph-client-os' |>>
|
||||||
|
|
||||||
|
@ -74,13 +74,11 @@ class cloud::volume::storage(
|
|||||||
}
|
}
|
||||||
|
|
||||||
Ceph::Key <<| title == $cinder_rbd_user |>>
|
Ceph::Key <<| title == $cinder_rbd_user |>>
|
||||||
if defined(Ceph::Key[$cinder_rbd_user]) {
|
file { "/etc/ceph/ceph.client.${cinder_rbd_user}.keyring":
|
||||||
file { "/etc/ceph/ceph.client.${cinder_rbd_user}.keyring":
|
owner => 'cinder',
|
||||||
owner => 'cinder',
|
group => 'cinder',
|
||||||
group => 'cinder',
|
mode => '0400',
|
||||||
mode => '0400',
|
require => Ceph::Key[$cinder_rbd_user]
|
||||||
require => Ceph::Key[$cinder_rbd_user]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Concat::Fragment <<| title == 'ceph-client-os' |>>
|
Concat::Fragment <<| title == 'ceph-client-os' |>>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user