Forge Home


A puppet module to manage crontab


10,413 latest version

2.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.3 (latest)
  • 1.0.2
  • 1.0.1
  • 1.0.0
released Jun 25th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'leonardothibes-crontab', '1.0.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add leonardothibes-crontab
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install leonardothibes-crontab --version 1.0.3

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



leonardothibes/crontab — version 1.0.3 Jun 25th 2014


A puppet module to manage crontab.

Sample Usage

Creating job to run daily at 12:00:

crontab::daily {'daily-test':
    hour    => 12,
    minute  => 0,
    command => 'rm -Rf /tmp/*',

Creating job to run hourly at minute 30(1:30, 2:30, 3:30...):

crontab::hourly {'hourly-test':
    minute  => 30,
    command => '/var/lib/scripts/',

Creating job to run every 10º day of month, at 12:00:

crontab::monthly {'monthly-test':
    day     => 10,
    hour    => 12,
    minute  => 30,
    command => '/opt/svn/scripts/',

Creating job to run weekly, every tuesday, at 07:15 pm with some environment variables:

crontab::weekly {'weekly-test':
    day     => 'tue',
    hour    => 7,
    minute  => 15,
    command => '/root/scripts/',
    env     => [

Removing a job:

crontab::weekly {'weekly-test':
    ensure => absent


Principal developer: Leonardo Thibes =>


Please log tickets and issues at our Projects site