cron::daily is actually a defined resource type, so you need to declare that resource as opposed to including a class. If you have multiple nodes that you would like to include the same cron job on, you can write your own class that declares a cron resources and include that.
It's hard to say without knowing what you're trying to do, but something like this might be a good place to start: class crontest { cron::daily {"test_cron_job": minute => '0,15,30,45', hour => '0,12', command => '/usr/bin/derp --foo'; } } On Monday, October 29, 2012 4:03:30 PM UTC-7, Kevin G. wrote: > > I seem to be missing something. I've copied the files from this module > https://github.com/torrancew/puppet-cron into my modulepath > > $ puppet master --configprint modulepath > /etc/puppet/modules:/usr/share/puppet/modules > > > so it looks like this: > > /etc/puppet/modules/cron-job/ > /etc/puppet/modules/cron-job/manifests/ > /etc/puppet/modules/cron-job/manifests/daily.pp > /etc/puppet/modules/cron-job/manifests/hourly.pp > /etc/puppet/modules/cron-job/manifests/init.pp > /etc/puppet/modules/cron-job/manifests/install.pp > /etc/puppet/modules/cron-job/manifests/job.pp > /etc/puppet/modules/cron-job/manifests/monthly.pp > /etc/puppet/modules/cron-job/manifests/weekly.pp > /etc/puppet/modules/cron-job/templates/ > /etc/puppet/modules/cron-job/templates/job.erb > > > AFAICT from the docs I should be able to do just this in my own manifests > > include daily > > > but all I get is > > Could not find class daily > > > What am I doing wrong? > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/rC-QLmUwnFEJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.