Disable Cron Script using puppet resource

3,263 views
Skip to first unread message

Corey Osman

unread,
Jan 26, 2013, 3:28:09 PM1/26/13
to Puppet Users
How can I disable / enable a cron job using puppet resource cron?




Thanks,

Corey Osman
Green IT and Data Center Automation Specialist






Matthew Burgess

unread,
Jan 26, 2013, 4:39:08 PM1/26/13
to puppet...@googlegroups.com
On Sat, Jan 26, 2013 at 8:28 PM, Corey Osman <co...@logicminds.biz> wrote:
> How can I disable / enable a cron job using puppet resource cron?

From http://docs.puppetlabs.com/references/3.0.latest/type.html#cron, it looks
like 'ensure => absent' will disable it (remove the crontab entry) and
'ensure => present' will enable it (add the crontab entry).

That's a bit stronger than 'enabling'/'disabling' in the strictest
sense of the word, though the effect is obviously the same.

Regards,

Matt.
Reply all
Reply to author
Forward
0 new messages