Merge pull request #489 from enovance/rbd-key-option
RBD: enable or not key management
This commit is contained in:
@@ -13,12 +13,16 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
#
|
#
|
||||||
class cloud::storage::rbd::key {
|
class cloud::storage::rbd::key (
|
||||||
|
$enabled = false
|
||||||
|
) {
|
||||||
|
|
||||||
if !empty($::ceph_admin_key) {
|
if $enabled {
|
||||||
@@ceph::key { 'admin':
|
if !empty($::ceph_admin_key) {
|
||||||
secret => $::ceph_admin_key,
|
@@ceph::key { 'admin':
|
||||||
keyring_path => '/etc/ceph/keyring',
|
secret => $::ceph_admin_key,
|
||||||
|
keyring_path => '/etc/ceph/keyring',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user