1CDIST-TYPE__CRON(7)                  cdist                 CDIST-TYPE__CRON(7)
2
3
4

NAME

6       cdist-type__cron - Installs and manages cron jobs
7

DESCRIPTION

9       This cdist type allows you to manage entries in a users crontab.
10

REQUIRED PARAMETERS

12       user   The user who's crontab is edited
13
14       command
15              The command to run.
16

OPTIONAL PARAMETERS

18       state  Either present or absent. Defaults to present.
19
20       minute See crontab(5). Defaults to *
21
22       hour   See crontab(5). Defaults to *
23
24       day_of_month
25              See crontab(5). Defaults to *
26
27       month  See crontab(5). Defaults to *
28
29       day_of_week
30              See crontab(5). Defaults to *
31
32       raw    Take  whatever  the  user  has  given  instead  of time and date
33              fields.  If given, all other time and date fields  are  ignored.
34              Can  for example be used to specify cron EXTENSIONS like reboot,
35              yearly etc.  See crontab(5) for the extensions if any that  your
36              cron implementation implements.
37
38       raw_command
39              Take  whatever  the  user  has  given  in the command and ignore
40              everything else.   If  given,  the  command  will  be  added  to
41              crontab.  Can for example be used to define variables like SHELL
42              or MAILTO.
43

EXAMPLES

45          # run Monday to Saturday at 23:15
46          __cron some-id --user root --command "/path/to/script" \
47             --hour 23 --minute 15 --day_of_week 1-6
48
49          # run on reboot
50          __cron some-id --user root --command "/path/to/script" \
51             --raw @reboot
52
53          # remove cronjob
54          __cron some-id --user root --command "/path/to/script" --state absent
55
56          # define default shell
57          __cron some-id --user root --raw_command --command "SHELL=/bin/bash" \
58             --state present
59

SEE ALSO

61       crontab(5)
62

AUTHORS

64       Steven Armstrong <steven-cdist--@--armstrong.cc>
65

COPYING

67       Copyright (C) 2011-2013  Steven  Armstrong.  You  can  redistribute  it
68       and/or  modify  it under the terms of the GNU General Public License as
69       published by the Free Software Foundation,  either  version  3  of  the
70       License, or (at your option) any later version.
71
73       ungleich GmbH 2019
74
75
76
77
786.4.0                            Jan 04, 2020              CDIST-TYPE__CRON(7)
Impressum