Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonots/chef-resource-whyrun_safe_execute
Add whyrun_safe_execute resource which enables to run command on why-run mode for chef
https://github.com/sonots/chef-resource-whyrun_safe_execute
Last synced: 2 days ago
JSON representation
Add whyrun_safe_execute resource which enables to run command on why-run mode for chef
- Host: GitHub
- URL: https://github.com/sonots/chef-resource-whyrun_safe_execute
- Owner: sonots
- Created: 2015-02-07T19:46:04.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-29T08:29:44.000Z (over 8 years ago)
- Last Synced: 2025-01-11T14:16:18.992Z (9 days ago)
- Language: Ruby
- Homepage:
- Size: 246 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# whyrun_safe_execute Cookbook
Add `whyrun_safe_execute` resource which enables to run command on why-run mode for chef
# Installation
## For Cookbook
For cookbook, write metadata.rb as:
```ruby
depends 'whyrun_safe_execute'
```and Berksfile:
```ruby
source 'https://supermarket.chef.io'metadata
cookbook 'whyrun_safe_execute', git: "https://github.com/sonots/chef-resource-whyrun_safe_execute.git"
```## For Chef Repository
For chef-repo, write Berksfile as:
```ruby
source 'https://supermarket.chef.io'cookbook 'whyrun_safe_execute', git: "https://github.com/sonots/chef-resource-whyrun_safe_execute.git"
```# Usage
Example:
```ruby
# recipes/test.rb
whyrun_safe_execute "foo" do
command "ls /tmp"
end
``````
$ chef-solo -c solo.rb -o {cookbook}::test -W -l info
```# Options
Options are same with `execute` resource. See http://docs.chef.io/resource_execute.html