crontab

A puppet module to manage crontab

Leonardo Thibes

leonardothibes

9,907 downloads

9,351 latest version

2.0 quality score

Version information

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

Start using this module

Documentation

leonardothibes/crontab — version 1.0.3 Jun 25th 2014

puppet-crontab

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/backup-svn.sh',
}

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/bkp.sh',
}

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/bkp.sh',
    env     => [
        'JAVA_HOME=/var/lib/jvm',
        'MAILTO="user@empresa.com"',
    ],
}

Removing a job:

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

Contact

Principal developer: Leonardo Thibes => eu@leonardothibes.com

Support

Please log tickets and issues at our Projects site