Hello, I''m newbie for puppet. I would appreciate someone tells me how to use "shedule". What I want to do is puppet client( puppetd ) tries to syncronize /etc/ hosts permission as 644, and puppetd tries to check every 3 minutes. ( I know 3 min is so quick, this is just a test of "schedule") So I wrote manifests/site.pp,> node default { > schedule { every3min: > period => hourly, > repeat => 20, > } > > file { > ''/etc/hosts'': > owner => ''root'', > group =>''root'', > mode =>''644'', > schedule => every3min, > } >}When puppet server( puppetmasterd ) and puppet clients(puppted) are rebooted by me, puppetd tries to check permission. But after that, I try "chmod 755 /etc/hosts" and wait 3 minutes, nothing happen. I think I might misunderstand someway. Does anyone give me a hand? -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=.
mk wrote:> What I want to do is puppet client( puppetd ) tries to syncronize /etc/ > hosts permission as 644, and puppetd tries to check every 3 minutes. > ( I know 3 min is so quick, this is just a test of "schedule") > > So I wrote manifests/site.pp, > >> node default { >> schedule { every3min: >> period => hourly, >> repeat => 20, >> }You can only use schedules to make Puppet manage something *less* often than Puppet''s normal run interval. If you only run Puppet every 30 minutes (which is the default for puppetd), then you can use schedule to do some expensive things only, for example, every third hour, or once a day, but every third minute is meaningless, because Puppet itself isn''t running that often. /Bellman -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=.
I would like to schedule puppet to only run EVERYTHING once a day at a specific time, what would be the best approach to do that? -Chris On Mon, Nov 23, 2009 at 9:21 AM, Thomas Bellman <bellman@nsc.liu.se> wrote:> mk wrote: > > > What I want to do is puppet client( puppetd ) tries to syncronize /etc/ > > hosts permission as 644, and puppetd tries to check every 3 minutes. > > ( I know 3 min is so quick, this is just a test of "schedule") > > > > So I wrote manifests/site.pp, > > > >> node default { > >> schedule { every3min: > >> period => hourly, > >> repeat => 20, > >> } > > You can only use schedules to make Puppet manage something *less* often > than Puppet''s normal run interval. If you only run Puppet every 30 minutes > (which is the default for puppetd), then you can use schedule to do some > expensive things only, for example, every third hour, or once a day, but > every third minute is meaningless, because Puppet itself isn''t running > that often. > > > /Bellman > > -- > > 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+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=. > > >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=.
Christopher Johnston wrote:> I would like to schedule puppet to only run EVERYTHING once a day at a > specific time, what would be the best approach to do that? >Use cron. -scott -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=.
any maybe a combination of --tags for the rest of the time On Tue, Nov 24, 2009 at 2:28 AM, Scott Smith <scott@ohlol.net> wrote:> Christopher Johnston wrote: > > I would like to schedule puppet to only run EVERYTHING once a day at a > > specific time, what would be the best approach to do that? > > > > Use cron. > > -scott > > -- > > 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+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=. > > >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.