Hi Josh,

That's explained it.  Thanks for your information

David

On Wednesday, June 5, 2013 6:08:27 PM UTC-4, Josh Cooper wrote:
>
> Hi David,
>
>
> On Wed, Jun 5, 2013 at 12:08 PM, <beyonddc...@gmail.com <javascript:>>wrote:
>
>> I have a very simple scheduled_task resource defined.
>>
>> class delete_task {
>>     scheduled_task { 'testing123':
>>       name      => "test_task",
>>       ensure    => absent,
>>     }
>> }
>>
>> I created this "test_task" by hand using the Windows Task Scheduler GUI.  
>> When I use Puppet and apply my resource, the task didn't get delete.
>>
>> On the other case if I create this "test_task" using Puppet.  The task 
>> will be created and I be able to delete the task using my delete_task 
>> resource.
>>     scheduled_task { 'testing321':
>>       name      => "test_task",
>>       ensure    => present,
>>       enabled   => true,
>>       command   => 'C:\Windows\system32\notepad.exe',
>>       trigger   => {
>>         schedule   => daily,
>>         every      => 2,            # Defaults to 1
>>         start_date => '2011-08-31', # Defaults to 'today'
>>         start_time => '08:00',      # Must be specified
>>       }
>>
>> My question is whether this behavior is expected?  Does Puppet only allow 
>> you to delete a task that Puppet creates?
>>
>> Thanks
>>
>> David
>>
>> -- 
>> 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...@googlegroups.com <javascript:>.
>> To post to this group, send email to puppet...@googlegroups.com<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>
> Puppet uses v1 of the windows scheduler APIs to maintain compatibility 
> with 2003 and up. However, if you are on Vista/2008/2012, and use the GUI 
> to create the task, by default it gets created using the v2 API, which 
> puppet cannot manage. There should be an option to create an older style 
> task, in which case, puppet should be able to manage it.
>
> Longer term, I'd like to create a new scheduled_task provider that 
> supports the v2 interface on platforms where that's available. Doing so 
> would enable us to run every X minutes: 
> https://projects.puppetlabs.com/issues/16804
>
> Josh
>
> -- 
> Josh Cooper
> Developer, Puppet Labs
>
> *Join us at PuppetConf 2013, August 22-23 in San Francisco - *
> http://bit.ly/pupconf13*
> **Register now and take advantage of the Early Bird discount - save 25%!*
>  

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to