stage facilitates multi stage chef runs
Debian, Ubuntu, CentOS, Red Hat, Scientific, Fedora, SUSE, Amazon, GCEL.
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]"
end
stage "second" do
run_list "recipe[bar]"
end
stage "third" do
run_list "recipe[baz]"
save false # attributes from baz wont be merged against the node
end
Author:: Ranjib Dey (dey.ranjib@gmail.com) Copyright:: 2013, Ranjib Dey
Licensed 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 at
http://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.