Ask Your Question
0

How can you create a schedule with a specific time and date

asked 2013-08-23 12:20:07 -0500

adamwenner gravatar image

Hello,

The schedule metaparameter seems to have a limitation in that you can only specify a daily OR hourly. For instance, you can say schedule this to run on Monday, and your puppet agent will apply that configuration item on a Monday. You can also say apply this configuration item between 2am and 4am, but you cannot seem to specify BOTH Monday AND 2am-4am.

Is there a way to do this?

Thanks, --adam

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-08-23 14:34:24 -0500

extraordinaire gravatar image

I haven't tested this yet, but have you tried defining 2 different schedules and then making your resource use both?

Something like

thing { "name":
  schedule => ['monday', 'between2and4am']
}
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-08-23 12:20:07 -0500

Seen: 97 times

Last updated: Aug 23 '13