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?

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/29fafc9a-061f-442f-8efa-de7124c883f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to