Corey Osman
2013-Jan-26 20:28 UTC
[Puppet Users] Disable Cron Script using puppet resource
How can I disable / enable a cron job using puppet resource cron? Thanks, Corey Osman corey@logicminds.biz Green IT and Data Center Automation Specialist -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Matthew Burgess
2013-Jan-26 21:39 UTC
Re: [Puppet Users] Disable Cron Script using puppet resource
On Sat, Jan 26, 2013 at 8:28 PM, Corey Osman <corey@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. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.