cookbook 'cronic', '= 1.1.2'
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.
cronic (6) Versions 1.1.2 Follow0
Installs/configures cronic
cookbook 'cronic', '= 1.1.2', :supermarket
knife supermarket install cronic
knife supermarket download cronic
Cronic Cookbook README
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 requires at least Chef 12. It is tested against the two most
recent major Chef versions (currently 13.x and 12.x) and the two most recent
major releases of Ubuntu (16.04 and 14.04), Debian (9 and 8), RHEL (7 and 6),
and Amazon Linux (2 and 1).
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
- Jonathan Hartman jonathan.hartman@socrata.com
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.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.1.2 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.1.2 passed this metric
Foodcritic Metric
1.1.2 passed this metric
No Binaries Metric
1.1.2 passed this metric
Testing File Metric
1.1.2 passed this metric
Version Tag Metric
1.1.2 passed this metric
1.1.2 failed this metric
1.1.2 passed this metric
Foodcritic Metric
1.1.2 passed this metric
No Binaries Metric
1.1.2 passed this metric
Testing File Metric
1.1.2 passed this metric
Version Tag Metric
1.1.2 passed this metric
1.1.2 passed this metric
1.1.2 passed this metric
Testing File Metric
1.1.2 passed this metric
Version Tag Metric
1.1.2 passed this metric
1.1.2 passed this metric
1.1.2 passed this metric