To use this snippet first replace the _default
in the URL with your environment name if you are using somethign other than the global default. Next in the run list, replace ...
with your cookbook names. Unlike other run lists, you cannot have roles here, and you don't use the 'recipe[foo]'
syntax, just 'foo'
.
Last active
August 29, 2015 13:56
-
-
Save coderanger/9198932 to your computer and use it in GitHub Desktop.
Command to run depsolver
This file contains 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
knife exec -E 'puts api.post("/environments/_default/cookbook_versions", "run_list" => [...]).map{|key, val| "#{key} #{val.version}"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment