Hi All, I would like to pick your brains as to the best way to configure the below senario within puppet. I am currently configuring puppet for our environment and have seperated development/back office from production through configuring roles for each server to identify them as such. What i need to be able todo is have the production servers only update outside of office hours, but have the development/back office servers update throughout the day. What would be the best way to acheive this? I have thought about the puppet schedule type, but can this be configured on roles/hosts? or does it have to be added to classes? Thanks for all your help. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Would disabling the puppetd''s from contacting the puppetmaster and scheduling puppetrun on the puppetmaster at the time and for the servers that I would like to update at night, be the way i should do it? Im sure it would work, but im not sure this is the best way. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I created this little batch file I put in cron.hourly (You can adapt to put in crontab to run on the hours you want it to): ########################################################## #!/bin/bash SERVER="--server URL.PUPPETMASTER.COM" FIRST=`echo $RANDOM%1800 | bc` sleep $FIRST /usr/sbin/puppetd --onetime --no-daemonize --logdest syslog $SERVER -- waitforcert 60 SECOND=$((1800-$FIRST+`echo $RANDOM%1800 | bc`)) sleep $SECOND /usr/sbin/puppetd --onetime --no-daemonize --logdest syslog $SERVER -- waitforcert 60 ########################################################## This runs randomly between 0-30 minutes, then after 30m, another random interval. So, it runs twice/hour randomly (to help with load spreading). YMMV.... Mike --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi mike, Thanks for the response. I will definately look into this method. Do you know if this, or something else is a "puppet standard" way of doing what im after? I know with projects like puppet, there are a million and one ways to skin a cat, but would just like to know what is the suggested "puppet" way of doing such. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
drmikecrowe wrote:> I created this little batch file I put in cron.hourly (You can adapt > to put in crontab to run on the hours you want it to): > > ########################################################## > #!/bin/bash > SERVER="--server URL.PUPPETMASTER.COM" > FIRST=`echo $RANDOM%1800 | bc` > sleep $FIRST > /usr/sbin/puppetd --onetime --no-daemonize --logdest syslog $SERVER -- > waitforcert 60 > SECOND=$((1800-$FIRST+`echo $RANDOM%1800 | bc`)) > sleep $SECOND > /usr/sbin/puppetd --onetime --no-daemonize --logdest syslog $SERVER -- > waitforcert 60 > ########################################################## > > This runs randomly between 0-30 minutes, then after 30m, another > random interval. So, it runs twice/hour randomly (to help with load > spreading). YMMV....You might want to look into creating a true cronjob using fqdn_rand() to avoid blocking the cron.hourly run. Regards, DavidS --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---