Fix missing mode/owner/group enforcement of polling.yaml

... and avoid hard-coding user/group but use the definition in
the params class.

Change-Id: Ia5f1e356902ad544fe7eb17e53b3b274475d40a8
This commit is contained in:
Takashi Kajinami 2022-02-20 18:57:46 +09:00
parent 04f0e54653
commit 8ac9135920
2 changed files with 5 additions and 2 deletions

View File

@ -156,7 +156,7 @@ class ceilometer::agent::notification (
selinux_ignore_defaults => true,
mode => '0640',
owner => 'root',
group => 'ceilometer',
group => $::ceilometer::params::group,
tag => 'ceilometer-yamls',
}
}
@ -177,7 +177,7 @@ class ceilometer::agent::notification (
selinux_ignore_defaults => true,
mode => '0640',
owner => 'root',
group => 'ceilometer',
group => $::ceilometer::params::group,
tag => 'ceilometer-yamls',
}
}

View File

@ -186,6 +186,9 @@ class ceilometer::agent::polling (
ensure => present,
path => $::ceilometer::params::polling,
content => $polling_content,
mode => '0640',
owner => 'root',
group => $::ceilometer::params::group,
selinux_ignore_defaults => true,
tag => 'ceilometer-yamls',
}