anyone have any smart ideas around scheduling puppet client runs during specific times ? such as outside of office hours ? any options that can be set in the puppet.conf for example ? -- 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/-/BbplaHlxFcQJ. 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.
Chris O''Donnell
2012-Dec-12 04:30 UTC
[Puppet Users] Re: Puppet client runs outside of office hours
Run puppet agent via cron. Add in a random delay so that all the clients don''t hit the server at the same time. I use the following script and set to run every 30 minutes: #!/bin/bash # Grab a random value between 0-1740 (29 minutes). value=$RANDOM while [ $value -gt 1740 ] ; do value=$RANDOM done # Sleep for that time. sleep $value # do puppet run /usr/bin/puppet agent -t On Tuesday, December 11, 2012 11:19:51 PM UTC-5, kdo wrote:> > anyone have any smart ideas around scheduling puppet client runs during > specific times ? such as outside of office hours ? > > any options that can be set in the puppet.conf for example ? >-- 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/-/g4ST8HHt5KQJ. 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.
DenMat Gone
2012-Dec-12 05:23 UTC
Re: [Puppet Users] Puppet client runs outside of office hours
Cron would be your best bet. You can manage cron jobs via puppet. kdo <karl@hampels.com.au> wrote:>anyone have any smart ideas around scheduling puppet client runs during specific times ? such as outside of office hours ? > > >any options that can be set in the puppet.conf for example ? > >-- >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/-/BbplaHlxFcQJ. >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.-- 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.
Stefan Goethals
2012-Dec-12 10:32 UTC
Re: [Puppet Users] Puppet client runs outside of office hours
We use this
cron { "puppet":
ensure => present,
command => $ppt_cmd,
user => ''root'',
hour => fqdn_rand(6),
minute => fqdn_rand(60)
}
so puppet runs happen ''randomly between midnight and 05:59
Regards,
Stefan - Zipkid - Goethals.
On Wed, Dec 12, 2012 at 6:23 AM, DenMat Gone <tu2bgone@gmail.com> wrote:
> Cron would be your best bet. You can manage cron jobs via puppet.
>
>
> kdo <karl@hampels.com.au> wrote:
>
> anyone have any smart ideas around scheduling puppet client runs during
> specific times ? such as outside of office hours ?
>
> any options that can be set in the puppet.conf for example ?
>
> --
> 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/-/BbplaHlxFcQJ.
>
> 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.
>
> --
> 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.
>
--
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.