cookbook 'chef_crontab', '~> 0.0.1', :supermarket
chef_crontab (1) Versions 0.0.1 Follow0
Configures crontab through Chef attributes.
cookbook 'chef_crontab', '~> 0.0.1'
knife supermarket install chef_crontab
knife supermarket download chef_crontab
chef_crontab
Configures crontab through Chef attributes.
Usage
chef_crontab::default
Just include chef_crontab::default
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[chef_crontab]"
]
}
Attributes
Note: see attributes/
for all attributes.
Entries:
Default Value:
[]
Ruby usage:
node['chef_crontab']['entries'] = [
{
"name" => "RunSomeScriptFriday2AM",
"user" => "SomeUser",
"shell" => "/bin/bash",
"minute" => "00",
"hour" => "02",
"weekday" => "5",
"command" => "/path/to/script.sh",
"action" => :create
}
]
JSON usage:
{
"chef_crontab": {
"entries": [
{
"name": "RunSomeScriptFriday2AM",
"user": "SomeUser",
"shell": "/bin/bash",
"minute": "00",
"hour": "02",
"weekday": "5",
"command": "/path/to/script.sh",
"action": "create"
}
]
}
}
Both examples will add an entry to SomeUser
's crontab that runs /path/to/script.sh
in bash at 2:00 AM on Fridays.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.0.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.0.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
0.0.1 passed this metric
No Binaries Metric
0.0.1 passed this metric
Publish Metric
0.0.1 passed this metric
Supported Platforms Metric
0.0.1 passed this metric
Testing File Metric
0.0.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
0.0.1 passed this metric
0.0.1 failed this metric
0.0.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
0.0.1 passed this metric
No Binaries Metric
0.0.1 passed this metric
Publish Metric
0.0.1 passed this metric
Supported Platforms Metric
0.0.1 passed this metric
Testing File Metric
0.0.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
0.0.1 passed this metric
0.0.1 passed this metric
0.0.1 passed this metric
Publish Metric
0.0.1 passed this metric
Supported Platforms Metric
0.0.1 passed this metric
Testing File Metric
0.0.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
0.0.1 passed this metric
0.0.1 passed this metric
0.0.1 passed this metric
Testing File Metric
0.0.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
0.0.1 passed this metric
0.0.1 failed this metric
0.0.1 passed this metric