Ensure novajoin's log directory ownership is correct
From ocata to pike, the log ownership changed. So here we make sure that it changes on update via puppet. Change-Id: I767b53801bc40a22a403c3e89498c3aa099bc162 Closes-Bug: #1714991
This commit is contained in:
parent
efda9b3b6a
commit
0a71535c4e
|
@ -173,6 +173,13 @@ class nova::metadata::novajoin::api (
|
||||||
tag => ['openstack', 'novajoin-package'],
|
tag => ['openstack', 'novajoin-package'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/var/log/novajoin':
|
||||||
|
ensure => directory,
|
||||||
|
owner => $service_user,
|
||||||
|
group => $service_user,
|
||||||
|
recurse => true,
|
||||||
|
}
|
||||||
|
|
||||||
if $ipa_domain != undef {
|
if $ipa_domain != undef {
|
||||||
novajoin_config {
|
novajoin_config {
|
||||||
'DEFAULT/domain': value => $ipa_domain;
|
'DEFAULT/domain': value => $ipa_domain;
|
||||||
|
|
|
@ -136,6 +136,13 @@ describe 'nova::metadata::novajoin::api' do
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it { is_expected.to contain_file("/var/log/novajoin").with(
|
||||||
|
'ensure' => 'directory',
|
||||||
|
'owner' => "#{param_hash[:service_user]}",
|
||||||
|
'group' => "#{param_hash[:service_user]}",
|
||||||
|
'recurse' => true
|
||||||
|
)}
|
||||||
|
|
||||||
it { is_expected.to contain_file("#{param_hash[:keytab]}").with(
|
it { is_expected.to contain_file("#{param_hash[:keytab]}").with(
|
||||||
'owner' => "#{param_hash[:service_user]}",
|
'owner' => "#{param_hash[:service_user]}",
|
||||||
'require' => 'Exec[get-service-user-keytab]',
|
'require' => 'Exec[get-service-user-keytab]',
|
||||||
|
|
Loading…
Reference in New Issue