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

The cronic cookbook has been deprecated

Author provided reason for deprecation:

The cronic cookbook has been deprecated and is no longer being maintained by its authors. Use of the cronic cookbook is no longer recommended.

RSS

cronic (6) Versions 1.2.1

Installs/configures cronic

Policyfile
Berkshelf
Knife
cookbook 'cronic', '~> 1.2.1', :supermarket
cookbook 'cronic', '~> 1.2.1'
knife supermarket install cronic
knife supermarket download cronic
README
Dependencies
Changelog
Quality 33%

Cronic Cookbook README

Cookbook Version
Build Status

A cookbook for managing cron jobs under Cronic, a simple cron script wrapper.

Cronic lets you write cron scripts that actually output content, but doesn't actually output anything to stdout/stderr unless the exit code is non-zero. This makes it significantly easier to debug cron scripts when they do go bad.

For more info: http://habilis.net/cronic/

Requirements

This cookbook is tested against a large matrix of platforms and Chef versions. For a full list, see the output of chef exec microwave list.

Usage

Declare instances of the cronic resource in recipes the same way you would the cron resource.

Recipes

default

This recipe is empty, only included so that an include_recipe 'cronic' will do nothing instead of raising an error.

Resources

cronic

A custom resource for managing cron jobs to be run via Cronic. Note that the cronic resource uses the built-in cron resource under the covers, so writes jobs to the crontab and not /etc/cron.d/.

Syntax:

cronic 'Restart Nginx monthly' do
  command 'service nginx restart'
  user 'root'
  minute 0
  hour 4
  day 1
  month '*'
  weekday '*'
  action :create
end

All actions and properties should be the same as for Chef's built-in cron resource.

Actions:

Action Description
:create Create the cron job
:delete Delete the cron job

Properties:

Property Default Description
command Resource name The command to run via Cronic
minute '*' The minute(s) to run the job
hour '*' The hour(s) to run the job
day '*' The day(s) to run the job
month '*' The month(s) to run the job
weekday '*' The day(s) of the week to run the job
time nil A frequency at which to run the job
user 'root' The user as whom to run the job
mailto nil MAILTO environment variable
path nil PATH environment variable
shell nil SHELL environment variable
home nil HOME environment variable
environment {} Any other nvironment variables

Maintainers

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Cronic Cookbook CHANGELOG

This file is used to list changes made in each version of the cronic cookbook.

1.2.1 (2019-06-03)

  • Pin CI to a Chef-DK that doesn't require a commercial license

1.2.0 (2019-05-03)

  • Ensure the relevant cron package is installed

1.1.2 (2019-01-21)

  • Remove 'rvm: system' from the TravisCI config

1.1.1 (2018-04-25)

  • Start testing against Ubuntu 18.04 and Chef 14
  • Inherit test configs from a central repo where possible
  • Run integration tests with Microwave

1.1.0 (2018-01-10)

  • Re-add missing time, environment, mailto, path, shell, and home properties

1.0.0 (2018-01-08)

  • Pull in v3 of the cronic script
  • Convert the cronic resource into a modern custom resource

0.5.0 (2013-04-10)

  • Initial release!

Collaborator Number Metric
            

1.2.1 failed this metric

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

Contributing File Metric
            

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

Foodcritic Metric
            

1.2.1 passed this metric

No Binaries Metric
            

1.2.1 passed this metric

Testing File Metric
            

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

Version Tag Metric
            

1.2.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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number