Merge "Reload rsyslog/cron when we change timezones"
This commit is contained in:
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' |>
|
||||
|
Loading…
x
Reference in New Issue
Block a user