From e78279a293935fbf5a4b972e0b3efff84d3180d6 Mon Sep 17 00:00:00 2001 From: Karsten Kosmala Date: Tue, 6 Mar 2018 16:15:19 +0100 Subject: [PATCH 1/2] enclose parameters in quotes ... to allow statements like */10 or * --- cron/config.sls | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cron/config.sls b/cron/config.sls index 783c5af..e66b4c8 100644 --- a/cron/config.sls +++ b/cron/config.sls @@ -13,19 +13,19 @@ cron.{{ task }}: - user: {{ task_options.user|default('root') }} {% endif %} {% if 'minute' in task_options %} - - minute: {{ task_options.minute }} + - minute: '{{ task_options.minute }}' {% endif %} {% if 'hour' in task_options %} - - hour: {{ task_options.hour }} + - hour: '{{ task_options.hour }}' {% endif %} {% if 'daymonth' in task_options %} - - daymonth: {{ task_options.daymonth }} + - daymonth: '{{ task_options.daymonth }}' {% endif %} {% if 'month' in task_options %} - - month: {{ task_options.month }} + - month: '{{ task_options.month }}' {% endif %} {% if 'dayweek' in task_options %} - - dayweek: {{ task_options.dayweek }} + - dayweek: '{{ task_options.dayweek }}' {% endif %} {% if 'commented' in task_options and task_options.commented %} - commented: True From 1958c20901ce60b1dfdcbe44a418ed8f3f751bba Mon Sep 17 00:00:00 2001 From: Karsten Kosmala Date: Tue, 6 Mar 2018 16:17:56 +0100 Subject: [PATCH 2/2] add special character example --- pillar.example | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pillar.example b/pillar.example index 8435e8c..fceb4d5 100644 --- a/pillar.example +++ b/pillar.example @@ -25,3 +25,9 @@ cron: user: 'root' special: '@hourly' comment: 'comment3' + task4: + type: 'present' # run every 5 minutes + user: 'root' + minute: '*/5' + hour: '*' + comment: 'comment4'