Created
March 5, 2012 16:46
-
-
Save lusis/1979216 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Do a bunch of shit that should only happen at initial setup | |
# file: cookbooks/foo/recipes/bootstrap.rb | |
# initial runlist role[foo],recipe[foo::bootstrap] | |
# useful for downloading an initial codebase of an application | |
# as opposed to attempting to reinstall each time | |
ruby_block "remove_bootstrap_recipe" do | |
block do | |
Chef::Log.info("Removing foo boostrap from runlist") | |
node.run_list.remove("recipe[foo::bootstrap]") if node.run_list.include?("recipe[foo::bootstrap]") | |
end | |
action :create | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment