[chef] Re: Windows Scheduled Tasks LWRP


Chronological Thread 
  • From: Seth Chisamore < >
  • To:
  • Subject: [chef] Re: Windows Scheduled Tasks LWRP
  • Date: Mon, 11 Jul 2011 07:24:46 -0400

David,
This looks great! Would you be up for contributing this to the Windows primitives cookbook [0][1] I released on Friday?

The vision for the 'windows' cookbook is to hold low-level resources that ease the pain of recipe/cookbook development that targets the Windows platform.  Currently this cookbook contains the following resources/providers:

* windows_package
* window_registry
* windows_zipfile

Some of these resources mirror their *nix counterparts (ie windows_package)...scheduledtask would fit right in as it mirrors the core Chef 'cron' resource.  The cookbook is also a real community effort as Doug MacEachern wrote the initial versions of the windows_registry and windows_zipfile LWRPs.

Seth

--
Opscode, Inc.
Seth Chisamore, Senior Technical Evangelist
IRC, Skype, Twitter, Github: schisamo


On Mon, Jul 11, 2011 at 12:08 AM, David Leaver < "> > wrote:

Hi All.

 

Here is another basic LWRP for Windows, this time scheduled tasks!

https://github.com/danzel/chef-cookbooks/tree/master/scheduledtask

 

It currently does just enough to create a scheduled task that repeats either daily or every X minutes. Adding in further repeat options and deleting/enabling/disabling shouldn’t be too difficult if anyone wants to add it in.

This probably won’t work correctly unless your computer language is English as it works by parsing the output of schtasks.exe

 

Cheers,
Dave.

David Leaver
Senior Software Engineer

DDI +64 7 857 0805 |  M +64 21 876684 |  E " target="_blank">   |  T +64 7 857 0800  F +64 7 857 0801
Waikato Innovation Park, Ruakura Rd  |  PO Box 7239, Hamilton 3247, NZ |  www.smartrak.co.nz

Description: smartrak_banner

This email and any attachments are confidential and are for the intended addressee(s) only.  Confidentiality is not waived due to accidental delivery to you. If you have received this communication erroneously, please delete.

 





Archive powered by MHonArc 2.6.16.

§