Fix idempotency for ceph-mgr

Change-Id: Ia5db0bcc884d47c918c7da6657aa5b9bfdcdce44
This commit is contained in:
Mohammed Naser 2017-09-27 10:41:37 -04:00
parent cb20c32c0b
commit c61c01840f
No known key found for this signature in database
GPG Key ID: 481CBC90384AEC42

View File

@ -53,15 +53,17 @@ define ceph::mgr (
$inject_key = false,
) {
file { '/var/lib/ceph/mgr':
ensure => directory,
owner => 'ceph',
group => 'ceph',
tag => 'ceph-mgr',
ensure => directory,
owner => 'ceph',
group => 'ceph',
seltype => 'ceph_var_lib_t',
tag => 'ceph-mgr',
} -> file { "/var/lib/ceph/mgr/${cluster}-${name}":
ensure => directory,
owner => 'ceph',
group => 'ceph',
tag => 'ceph-mgr',
ensure => directory,
owner => 'ceph',
group => 'ceph',
seltype => 'ceph_var_lib_t',
tag => 'ceph-mgr',
}
if $authentication_type == 'cephx' {