From 1d64605559738cff0041bd139d4fec6c3db6f63e Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 8 Sep 2024 15:08:44 +0200 Subject: [PATCH] updated salt_minion state --- states/salt_minion/config.sls | 5 +++-- states/salt_minion/defaults.yaml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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"