Oh, right. You need to rename /etc/puppet/modules/cron-job/ to cron/ The outermost directory needs to match the module name which needs to be "cron".
http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html On Monday, October 29, 2012 4:31:53 PM UTC-7, Kevin G. wrote: > > On Monday, October 29, 2012 4:19:11 PM UTC-7, Jenner La Fave wrote: >> >> 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'; >> } >> } >> > > That's what I thought at first, but doing that I get: > > Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid > resource type cron::daily > > > so I figured I needed to include the file first. > > Am I still missing something? > > -- 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/-/uJi7xYKnRikJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
