Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

windows_tasks (3) Versions 0.1.2

Manage Windows scheduled tasks through attributes.

Berkshelf/Librarian
Policyfile
Knife
cookbook 'windows_tasks', '~> 0.1.2'
cookbook 'windows_tasks', '~> 0.1.2', :supermarket
knife cookbook site install windows_tasks
knife cookbook site download windows_tasks
README
Dependencies
Quality 67%

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.2 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.2 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 https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.1.2 passed this metric

License Metric
            

0.1.2 passed this metric

No Binaries Metric
            

0.1.2 passed this metric

Publish Metric
            

0.1.2 passed this metric

Supported Platforms Metric
            

0.1.2 passed this metric

Testing File Metric
            

0.1.2 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 https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.1.2 passed this metric