diff --git a/states/salt_minion/config.sls b/states/salt_minion/config.sls index 4cb79bb..a921ed3 100644 --- a/states/salt_minion/config.sls +++ b/states/salt_minion/config.sls @@ -11,6 +11,7 @@ salt-minion-config: salt-minion-reload: cron.present: - - name: "for i in $(pgrep salt-minion); do kill -HUP $i; break; done" + - name: "{{ salt_minion.reload_cmd }}" + - identifier: salt-minion-reload - user: root - - minute: 5 + - minute: '*/30' diff --git a/states/salt_minion/defaults.yaml b/states/salt_minion/defaults.yaml index db89630..33b33ae 100644 --- a/states/salt_minion/defaults.yaml +++ b/states/salt_minion/defaults.yaml @@ -20,3 +20,4 @@ salt_minion: - redis==4.3.5 - pycparser==2.21 config: {} + reload_cmd: "for i in $(pgrep salt-minion); do kill -HUP $i; break; done"