cookbook 'windows_tasks', '= 0.1.0'
windows_tasks (3) Versions 0.1.0 Follow4
Manage Windows scheduled tasks through attributes.
cookbook 'windows_tasks', '= 0.1.0', :supermarket
knife supermarket install windows_tasks
knife supermarket download windows_tasks
Windows Tasks
Manage Windows scheduled tasks through attributes.
Requires
platform == 'windows'
chef_version '>= 12.1'
cookbook 'windows', '~> 2.1.1'
Usage
manage_windows_tasks::default
Just include manage_windows_tasks
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[windows_tasks]" ] }
Then move on to filling out some attributes.
Attributes
Ignore Failures
This set the ignore_failures default value for each task you define.
Default Value:
false
Ruby usage:
node['windows_tasks']['ignore_failures'] = true
JSON usage:
{ "windows_tasks": { "ignore_failures": true } }
Tasks
The set of tasks that you intend to manage.
Ruby usage:
node['windows_tasks']['tasks'] = [ "GoogleUpdateTaskMachineCore" => [ "action" => 'delete' ], "Adobe Flash Player Updater" => [ "action" => 'delete' ], "chef-client" => [ "ignore_failures" => false, "user" => "Administrator", "password" => "$ecR3t", "cwd" => "C:\\chef\\bin", "command" => "chef-client -L C:\\tmp\\", "run_level" => "highest", "frequency" => "minute", "frequency_modifier" => 15 ] ]
JSON usage:
{ "windows_tasks": { "tasks": { "GoogleUpdateTaskMachineCore": { "action": "delete" }, "Adobe Flash Player Updater": { "action": "delete" }, "chef-client": { "ignore_failures": false, "user": "Administrator", "password": "$ecR3t", "cwd": "C:\\chef\\bin", "command": "chef-client -L C:\\tmp\\", "run_level": "highest", "frequency": "minute", "frequency_modifier": 15 } } } }
More examples and task parameters can be extrapolated from this section of the windows
cookbook.
Dependent cookbooks
windows ~> 2.1.1 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
License Metric
0.1.0 passed this metric
0.1.0 passed this metric