Skip to content

Instantly share code, notes, and snippets.

@djk29a
Last active October 9, 2015 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djk29a/8e27782ee3d18565d6c1 to your computer and use it in GitHub Desktop.
Save djk29a/8e27782ee3d18565d6c1 to your computer and use it in GitHub Desktop.
Download Chef roles in all environments to JSON files
mkdir environments
for env in $(knife environment list); do
knife environment show "${env}" --format=json > "environments/${env}.json"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment