cookbook 'windows_tasks', '= 0.1.1'
windows_tasks (3) Versions 0.1.1 Follow4
Manage Windows scheduled tasks through attributes.
cookbook 'windows_tasks', '= 0.1.1', :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, # Overriding the global settings set earlier "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.
Collaborator Number Metric
0.1.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of http://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.1 passed this metric
License Metric
0.1.1 passed this metric
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of http://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 passed this metric
0.1.1 failed this metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of http://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.1 passed this metric
License Metric
0.1.1 passed this metric
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of http://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 passed this metric
0.1.1 passed this metric
0.1.1 passed this metric
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of http://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 passed this metric
0.1.1 passed this metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of http://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 passed this metric
0.1.1 passed this metric