Ensure public_addr option is purged
... instead of leaving the option. Change-Id: I7e4e2403570cff622d81804c13edf03548a0de18
This commit is contained in:
parent
8bc67e20e7
commit
1857b60b60
@ -109,11 +109,19 @@ class ceph::mds (
|
||||
ceph_config {
|
||||
"mds.${mds_id}/public_addr": value => $public_addr;
|
||||
}
|
||||
} else {
|
||||
ceph_config {
|
||||
"mds.${mds_id}/public_addr": ensure => absent;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ceph_config {
|
||||
'mds/mds_data': ensure => absent;
|
||||
'mds/keyring': ensure => absent;
|
||||
}
|
||||
|
||||
ceph_config {
|
||||
"mds.${mds_id}/public_addr": ensure => absent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -55,12 +55,14 @@ describe 'ceph::mds' do
|
||||
describe "not activated" do
|
||||
let :params do
|
||||
{
|
||||
:mds_id => 'mymds',
|
||||
:mds_activate => false
|
||||
}
|
||||
end
|
||||
|
||||
it { should contain_ceph_config('mds/mds_data').with_ensure('absent') }
|
||||
it { should contain_ceph_config('mds/keyring').with_ensure('absent') }
|
||||
it { should contain_ceph_config('mds.mymds/public_addr').with_ensure('absent') }
|
||||
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user