On Thu, Aug 7, 2014 at 6:36 AM, cko <[email protected]> wrote:

> Hi,
>
> I'm using the following scheduled_task on one of my windows server 2008 r2
> boxes:
>
> scheduled_task { 'reboot':
>>   command   => 'C:\WINDOWS\System32\shutdown.exe',
>>   arguments => "-r -f -t 01",
>>   user      => 'SYSTEM',
>>   trigger   => {
>>     schedule    => weekly,
>>     start_time  => '06:00',
>>     every       => 1,
>>     day_of_week => sun,
>>   }
>> }
>
>
> Puppet creates the task and works just fine.
>
> However, on every single puppet run the trigger changes (even though I
> didn't change the puppet code).
>
> The report shows the following output:
>
>
>> *Notice: /Stage[main]/Main/Node[NODE]/Scheduled_task[reboot]/trigger:
>> trigger changed '{'every' => '1', 'on' => ['sun'], 'schedule' => 'weekly',
>> 'start_date' => '2014-8-7', 'start_time' => '06:00'}' to '[{'day_of_week'
>> => ['sun'], ' every' => '1', 'schedule' => 'weekly', 'start_time' =>
>> '06:00'}]' Notice: Finished catalog run in 6.55 seconds*
>
>
> Is there anything I can do to achieve idempotence with this scheduled task?
>

This looks like you are running into PUP-1165[1]. Would you mind voting
that issue up and commenting on it?

[1]: https://tickets.puppetlabs.com/browse/PUP-1165


>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/29fafc9a-061f-442f-8efa-de7124c883f2%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/29fafc9a-061f-442f-8efa-de7124c883f2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Rob Reynolds
Developer, Puppet Labs

*Join us at PuppetConf 2014 <http://www.puppetconf.com/>, September
20-24 in San Francisco*
*Register by September 8th to take advantage of the Final Countdown
<https://www.eventbrite.com/e/puppetconf-2014-tickets-7666774529?discount=FinalCountdown>
*
*--**save $149!*

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMJiBK7f%3DkM0gcj0mEQb%3DFamjoSOpp7ScT5r%2BKqR0GP%3DhWEG6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to