Created
May 23, 2014 15:31
-
-
Save benneuman/b28d924c8cedd2c0e81d to your computer and use it in GitHub Desktop.
Bash script for pushing data bags. Put in chef-repo dir on your workstation. Make sure you have encryption key at chef-repo/.chef/encrypted_data_bag_secret.
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
#!/bin/bash | |
DATA_BAGS=data_bags/users/* | |
for f in $DATA_BAGS | |
do | |
knife data bag from file users $f --secret-file .chef/encrypted_data_bag_secret | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment