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

Select Status

RSS

windows_tasks (3) Versions 0.1.0

Manage Windows scheduled tasks through attributes.

Policyfile
Berkshelf
Knife
cookbook 'windows_tasks', '= 0.1.0', :supermarket
cookbook 'windows_tasks', '= 0.1.0'
knife supermarket install windows_tasks
knife supermarket 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,
      "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.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Foodcritic Metric
            

0.1.0 passed this metric

License Metric
            

0.1.0 passed this metric