Merge "Reload rsyslog/cron when we change timezones"

This commit is contained in:
Zuul 2019-03-13 14:35:02 +00:00 committed by Gerrit Code Review
commit aae453c5af

@ -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' |>