Reload rsyslog/cron when we change timezones
If the default timezone in the overcloud image or deployed system is
changed on install, rsyslog will continue to use that timezone until
it's reloaded. Do a reload of rsyslog if we update the timezone file.
The same happens with crond so we need to reload that again.
Change-Id: I7cfde5963b4fce010e936b4fd5bbe96a39cc5c17
Closes-Bug: #1819548
(cherry picked from commit 2182e0b0d0
)
This commit is contained in:
parent
e5e6fd4f11
commit
ec02985da9
|
@ -44,3 +44,16 @@ outputs:
|
|||
timezone::timezone: {get_param: TimeZone}
|
||||
step_config: |
|
||||
include ::timezone
|
||||
exec { 'timezone-reload-rsyslog':
|
||||
path => ['/bin', '/usr/bin'],
|
||||
command => 'systemctl restart rsyslog',
|
||||
refreshonly => true,
|
||||
tag => 'timezone-reload-services',
|
||||
}
|
||||
exec { 'timezone-reload-crond':
|
||||
path => ['/bin', '/usr/bin'],
|
||||
command => 'systemctl restart crond',
|
||||
refreshonly => true,
|
||||
tag => 'timezone-reload-services',
|
||||
}
|
||||
File<| title == $::timezone::timezone_file |> ~> Exec<| tag == 'timezone-reload-services' |>
|
||||
|
|
Loading…
Reference in New Issue