Created
September 22, 2014 19:36
-
-
Save cdracars/1c999aadd5cfcd72b854 to your computer and use it in GitHub Desktop.
Download roles from chef server onto local directory
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
for role in `knife role list`; do | |
knife role show $role --format=json > $role.json | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can change role to environment and get all of those as well.