Skip to content

Instantly share code, notes, and snippets.

@filler
Created April 25, 2017 15:43
Show Gist options
  • Save filler/3db71f1da15288a7c332eabba11bfebe to your computer and use it in GitHub Desktop.
Save filler/3db71f1da15288a7c332eabba11bfebe to your computer and use it in GitHub Desktop.
lol, databags.
# TODO: Make this target diff whats on the chef server versus whats
# about to go to the chef server. This way we can catch any out of
# band changes that might have happened and can recover from them.
#
# TODO: Make this target clean the chef server of any objects not in
# version control.
chef-bags:
@$(foreach bag,$(shell basename .chef/data_bags/*), \
knife data bag create $(bag) ; \
knife data bag from file $(bag) .chef/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment