Skip to content

marvinpinto-archive/puppet-cron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Usage Examples

The following hiera and puppet examples are both equivalent and would create:

$ cat /etc/cron.d/puppet
#
# cron-job for puppet (managed by puppet)
#
MAILTO=""
# DISABLED-IN-PUPPET  */30 * * * * root /usr/local/bin/puppull && /usr/local/bin/puprun -y
Hiera
cron::crontabs:
  'puppet':
    minute: '*/30'
    mailto: ''
    hour: '*'
    day_of_month: '*'
    month: '*'
    day_of_week: '*'
    command: '/usr/local/bin/puppull && /usr/local/bin/puprun -y'
    user: 'root'
    enabled: 'false'
Puppet
cron::crontab {'puppet':
  minute       => '*/30',
  mailto       => '',
  hour         => '*',
  day_of_month => '*',
  month        => '*',
  day_of_week  => '*',
  command      => '/usr/local/bin/puppull && /usr/local/bin/puprun -y',
  user         => 'root',
  enabled      => 'true',
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published