On Feb 2, 5:18 am, Os <ozzim...@googlemail.com> wrote: > Hello, > > I am testing some schedule configurations and was wondering if I can > use the schedule type in my own defines? As far as I can claim from my > own tests, this is not possible? > > For example, the schedule "morning" does not work with my self-written > define "my_crontab": > > ######################################### > > class crontab { > schedule {"morning": > range => "8-9", > } > > my_crontab{"user-crontab": > hostname => 'foobar001', > schedule => 'einmal', > } > > } > > ######################################### > > Am I missing something or is it impossible to use the schedule type > with my own defines?
You are missing something, I think. The 'schedule' metaparameter can be used with any resource, including those of defined types. Could it be as simple as the fact that you name your schedule 'morning', but assign a different, possibly missing, schedule 'einmal' to the resource? Anyway, you didn't specify what "does not work" means. What is the nature of the [mis]behavior you see? Is it possible that you have the wrong expectations? Schedules in Puppet limit when or how often resources are managed, but that's modulated by when and how often the node checks in to request a catalog. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.