marcy-cookbooks / windows_scheduler

Set Windows Task Scheduler use PowerShell.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

windows_scheduler Cookbook

Set Windows Task Scheduler use PowerShell. For now, Only support ScheduledJob of every few minutes.

Requirements

  • Chef 11 or higher
  • Windows 2008 R2 or later
  • PowerShell 3.0 or higher

Usage

1. Just include windows_scheduler in your node's Berksfile:
cookbook 'windows_scheduler', git: 'https://github.com/marcy-cookbooks/windows_scheduler.git'
2. Just include windows_scheduler in your cookbook's metadata.rb:
depends 'windows_scheduler'
3. Create recipe that use windows_scheduler_job resource like this:
  windows_scheduler_job "example job" do
    path "C:\\path\\to\\job.ps1"
    span_minutes 5
    action :create
  end

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

  • License: Apache 2.0
  • Author: Masashi Terui

About

Set Windows Task Scheduler use PowerShell.


Languages

Language:Ruby 100.0%