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+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