Stop creating /var/lib/ceph/mgr

This directory is created by the ceph-mgr package.

Change-Id: Ib857cecf258c350ae74152eb45f301a1c41f13c3
This commit is contained in:
Takashi Kajinami 2023-07-24 01:54:15 +09:00
parent c55e22b8a3
commit 137e568257
2 changed files with 1 additions and 13 deletions

View File

@ -52,13 +52,7 @@ define ceph::mgr (
$key = undef,
Boolean $inject_key = false,
) {
file { '/var/lib/ceph/mgr':
ensure => directory,
owner => 'ceph',
group => 'ceph',
seltype => 'ceph_var_lib_t',
tag => 'ceph-mgr',
} -> file { "/var/lib/ceph/mgr/${cluster}-${name}":
file { "/var/lib/ceph/mgr/${cluster}-${name}":
ensure => directory,
owner => 'ceph',
group => 'ceph',

View File

@ -38,12 +38,6 @@ describe 'ceph::mgr' do
}
end
it { should contain_file('/var/lib/ceph/mgr').with(
:ensure => 'directory',
:owner => 'ceph',
:group => 'ceph'
)}
it { should contain_file('/var/lib/ceph/mgr/ceph-foo').with(
:ensure => 'directory',
:owner => 'ceph',