From 995d618ff5f3e23a4ed40bcac62c59c89a14f51e Mon Sep 17 00:00:00 2001 From: Masaya-A <68965261+Masaya-A@users.noreply.github.com> Date: Mon, 25 Jan 2021 15:45:33 +0900 Subject: [PATCH] Add cron.absent to remove old cron job if present --- salt/suricata/init.sls | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/salt/suricata/init.sls b/salt/suricata/init.sls index a3e5a38a3..3de6e3568 100644 --- a/salt/suricata/init.sls +++ b/salt/suricata/init.sls @@ -168,6 +168,15 @@ disable_so-suricata_so-status.conf: - regex: ^so-suricata$ {% endif %} +/usr/local/bin/surirotate: + cron.absent: + - user: root + - minute: '11' + - hour: '*' + - daymonth: '*' + - month: '*' + - dayweek: '*' + {% else %} {{sls}}_state_not_allowed: