Last active
October 9, 2015 15:48
-
-
Save djk29a/8e27782ee3d18565d6c1 to your computer and use it in GitHub Desktop.
Download Chef roles in all environments to JSON files
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
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