rbd/pools: avoid dupplicated resource for keyring
close bug #309 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
@@ -63,12 +63,7 @@ class cloud::storage::rbd::pools(
|
|||||||
secret => $::ceph_keyring_glance,
|
secret => $::ceph_keyring_glance,
|
||||||
keyring_path => "/etc/ceph/ceph.client.${glance_rbd_user}.keyring"
|
keyring_path => "/etc/ceph/ceph.client.${glance_rbd_user}.keyring"
|
||||||
}
|
}
|
||||||
Ceph::Key <<| title == $cinder_rbd_user |>> ->
|
Ceph::Key <<| title == $cinder_rbd_user |>>
|
||||||
file { "/etc/ceph/ceph.client.${glance_rbd_user}.keyring":
|
|
||||||
owner => 'glance',
|
|
||||||
group => 'glance',
|
|
||||||
mode => '0400'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if $::ceph_keyring_cinder {
|
if $::ceph_keyring_cinder {
|
||||||
@@ -77,12 +72,7 @@ class cloud::storage::rbd::pools(
|
|||||||
secret => $::ceph_keyring_cinder,
|
secret => $::ceph_keyring_cinder,
|
||||||
keyring_path => "/etc/ceph/ceph.client.${cinder_rbd_user}.keyring"
|
keyring_path => "/etc/ceph/ceph.client.${cinder_rbd_user}.keyring"
|
||||||
}
|
}
|
||||||
Ceph::Key <<| title == $cinder_rbd_user |>> ->
|
Ceph::Key <<| title == $cinder_rbd_user |>>
|
||||||
file { "/etc/ceph/ceph.client.${cinder_rbd_user}.keyring":
|
|
||||||
owner => 'cinder',
|
|
||||||
group => 'cinder',
|
|
||||||
mode => '0400'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$clients = [$glance_rbd_user, $cinder_rbd_user]
|
$clients = [$glance_rbd_user, $cinder_rbd_user]
|
||||||
|
Reference in New Issue
Block a user