I am trying to set a default schedule and not having a lot of luck. It doesn''t look like they are used a whole lot and I''ve had a hard time finding documentation. What I would ultimately like is for the default schedule to be daily from "17:00 - 03:00." I''m not sure if it''ll work past midnight, if it doesn''t I can work around that. I found in a previous post to set the default schedule define: /etc/puppet/manifests/site.pp Schedule{ period => hourly, range => "17:00 - 23:00", } (I set it so it wouldn''t cross midnight first, after I get this working I can extend it and see if it still works) The problem is that it looks like puppetd still processes everything even though it is outside the scheduled window. What am I missing? Thanks, jl --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Nobody has used a default schedule? Thanks, jl From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Justin Lambert Sent: Wednesday, April 01, 2009 12:31 PM To: puppet-users@googlegroups.com Subject: [Puppet Users] Default Schedule I am trying to set a default schedule and not having a lot of luck. It doesn''t look like they are used a whole lot and I''ve had a hard time finding documentation. What I would ultimately like is for the default schedule to be daily from "17:00 - 03:00." I''m not sure if it''ll work past midnight, if it doesn''t I can work around that. I found in a previous post to set the default schedule define: /etc/puppet/manifests/site.pp Schedule{ period => hourly, range => "17:00 - 23:00", } (I set it so it wouldn''t cross midnight first, after I get this working I can extend it and see if it still works) The problem is that it looks like puppetd still processes everything even though it is outside the scheduled window. What am I missing? Thanks, jl --~--~---------~--~----~------------~-------~--~----~ 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 can set schedules, and those work fine. What I am trying to prevent is (my) stupidity of accidently scheduling something that runs during the day. I will then over-ride the default with anything that should be checked during the day. I found where the default schedule is defined, and could modify that code, but I would assume there is a more ''correct'' way of doing this. My ruby is also very poor (non-existent). What I was looking at was this thread: http://groups.google.com/group/puppet-users/browse_thread/thread/3b77a239a1d77d5/516d24762429bf35 that mentioned Schedule. I have put: Schedule { range => "12 - 14", } As the first item in my site.pp, just to be sure the parser found it. Any help on the correct way to over-ride the default schedule would be great. The type reference doesn''t seem to have anything that helps me out either. Thanks, jl From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Justin Lambert Sent: Wednesday, April 01, 2009 12:31 PM To: puppet-users@googlegroups.com Subject: [Puppet Users] Default Schedule I am trying to set a default schedule and not having a lot of luck. It doesn''t look like they are used a whole lot and I''ve had a hard time finding documentation. What I would ultimately like is for the default schedule to be daily from "17:00 - 03:00." I''m not sure if it''ll work past midnight, if it doesn''t I can work around that. I found in a previous post to set the default schedule define: /etc/puppet/manifests/site.pp Schedule{ period => hourly, range => "17:00 - 23:00", } (I set it so it wouldn''t cross midnight first, after I get this working I can extend it and see if it still works) The problem is that it looks like puppetd still processes everything even though it is outside the scheduled window. What am I missing? Thanks, jl --~--~---------~--~----~------------~-------~--~----~ 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 have finally figured out a way to do this, posting in case anyone else has the same question. I defined my ''default'' schedule and just included it in the class everything else inherits from. This may not be the best way, but it works for me. schedule { normal: range => "17:00 - 04:00", } class general { $schedule = "normal" } jl From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Justin Lambert Sent: Tuesday, April 07, 2009 8:00 AM To: puppet-users@googlegroups.com Subject: [Puppet Users] RE: Default Schedule I can set schedules, and those work fine. What I am trying to prevent is (my) stupidity of accidently scheduling something that runs during the day. I will then over-ride the default with anything that should be checked during the day. I found where the default schedule is defined, and could modify that code, but I would assume there is a more ''correct'' way of doing this. My ruby is also very poor (non-existent). What I was looking at was this thread: http://groups.google.com/group/puppet-users/browse_thread/thread/3b77a239a1d77d5/516d24762429bf35 that mentioned Schedule. I have put: Schedule { range => "12 - 14", } As the first item in my site.pp, just to be sure the parser found it. Any help on the correct way to over-ride the default schedule would be great. The type reference doesn''t seem to have anything that helps me out either. Thanks, jl From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Justin Lambert Sent: Wednesday, April 01, 2009 12:31 PM To: puppet-users@googlegroups.com Subject: [Puppet Users] Default Schedule I am trying to set a default schedule and not having a lot of luck. It doesn''t look like they are used a whole lot and I''ve had a hard time finding documentation. What I would ultimately like is for the default schedule to be daily from "17:00 - 03:00." I''m not sure if it''ll work past midnight, if it doesn''t I can work around that. I found in a previous post to set the default schedule define: /etc/puppet/manifests/site.pp Schedule{ period => hourly, range => "17:00 - 23:00", } (I set it so it wouldn''t cross midnight first, after I get this working I can extend it and see if it still works) The problem is that it looks like puppetd still processes everything even though it is outside the scheduled window. What am I missing? Thanks, jl --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---