[Puppet Users] RE: Default Schedule

Justin Lambert
Fri, 10 Apr 2009 17:02:11 -0000

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.