Restart collectd at the end of configuring cpu

Restart collectd after configuring cpu to ensure collectd loads
updated configuration

Closes-Bug: 1837424
Change-Id: I10e0f431dfd01637f38319d506559aa3927f11ff
Signed-off-by: Bin Qian <bin.qian@windriver.com>
This commit is contained in:
Bin Qian 2019-07-23 15:02:26 -04:00
parent aa5ff1cfe7
commit ba7423c911
1 changed files with 2 additions and 1 deletions

View File

@ -9,12 +9,13 @@ class platform::compute::params (
class platform::compute::config
inherits ::platform::compute::params {
include ::platform::collectd::restart
file { '/etc/platform/worker_reserved.conf':
ensure => 'present',
replace => true,
content => template('platform/worker_reserved.conf.erb')
}
-> Exec['collectd-restart']
if $::platform::params::system_type != 'All-in-one' {
file { '/etc/systemd/system.conf.d/platform-cpuaffinity.conf':