Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ranjib/chef-stage
Cookbook to facilitate multistage chef runs
https://github.com/ranjib/chef-stage
Last synced: 4 months ago
JSON representation
Cookbook to facilitate multistage chef runs
- Host: GitHub
- URL: https://github.com/ranjib/chef-stage
- Owner: ranjib
- License: apache-2.0
- Created: 2013-02-28T05:17:01.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-17T18:58:29.000Z (over 10 years ago)
- Last Synced: 2024-08-07T23:45:00.672Z (7 months ago)
- Language: Ruby
- Size: 172 KB
- Stars: 14
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Description
====_stage_ facilitates multi stage chef runs
Requirements
====Debian, Ubuntu, CentOS, Red Hat, Scientific, Fedora, SUSE, Amazon, GCEL.
Usage
====
include the "stage" recipe to use the lwrp. this recipe provides a default resource name "stage".
__stage__ resource can take four options, __run_list__ which is simlar to node run list and can be
a comma separated string of recipes and roles. the other option __save__ is a boolean, which dictates
whether the attributes from the run list will be saved or merged against the current node or not, __save__
is true by default. __stage__ resource right now supports only _:run_ action. Stage reasource is idempotent
and can be used to notify other resources (assuming the resources invoked by the run list attribute are
idempotent).the options __json_attributes__ and __args__ can be used to pass additional json attributes and arguments
to the sub chef runs.__stage__ resources can also
include_recipe "stage"
stage "first" do
run_list "recipe[foo]"
endstage "second" do
run_list "recipe[bar]"
endstage "third" do
run_list "recipe[baz]"
save false # attributes from baz wont be merged against the node
endLicense and Author
====Author:: Ranjib Dey ()
Copyright:: 2013, Ranjib DeyLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations License.