No description, website, or topics provided.
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
recipes
templates/default
LICENSE
README.md
metadata.rb

README.md

Whenever Cookbook

The whenever cookbook default receipe includes the 'install' recipe to:

  • install the 'whenever' gem and its dependencies

The whenever cookbook will include the 'wheneverize' recipe IF node attributes include:

{
  "whenever": {
    "update_tasks": true
  }
}

The wheneverize recipe:

  • creates a default schedule.rb file including tasks specified in 'whenever' chef attributes, and,
  • runs whenever --update-crontab

Requirements

Attributes

Usage

whenever::wheneverize

e.g. Just include whenever::wheneverize in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[whenever::wheneverize]"
  ]
}

Include whenever attributes in your node's chef attributes:

"whenever": {
  "gem_version": "0.8.4",
  "whenever_path": "/mnt/mfs-medidata-distro/current",
  "update_tasks": true,
  "whenever_tasks": [{
    "unit_of_time": "1.minutes",
    "task": "command \"echo \'hello\'\""
  }]
}

Learn more about whenever.

Contributing

TODO

  • add configurability to schedule.rb as provided by whenever gem

License and Authors

Authors: Aimee Barciauskas abarciauskas@mdsol.com