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:
parent
aa5ff1cfe7
commit
ba7423c911
|
@ -9,12 +9,13 @@ class platform::compute::params (
|
||||||
|
|
||||||
class platform::compute::config
|
class platform::compute::config
|
||||||
inherits ::platform::compute::params {
|
inherits ::platform::compute::params {
|
||||||
|
include ::platform::collectd::restart
|
||||||
file { '/etc/platform/worker_reserved.conf':
|
file { '/etc/platform/worker_reserved.conf':
|
||||||
ensure => 'present',
|
ensure => 'present',
|
||||||
replace => true,
|
replace => true,
|
||||||
content => template('platform/worker_reserved.conf.erb')
|
content => template('platform/worker_reserved.conf.erb')
|
||||||
}
|
}
|
||||||
|
-> Exec['collectd-restart']
|
||||||
|
|
||||||
if $::platform::params::system_type != 'All-in-one' {
|
if $::platform::params::system_type != 'All-in-one' {
|
||||||
file { '/etc/systemd/system.conf.d/platform-cpuaffinity.conf':
|
file { '/etc/systemd/system.conf.d/platform-cpuaffinity.conf':
|
||||||
|
|
Loading…
Reference in New Issue