Skip to content

Instantly share code, notes, and snippets.

@andy-leonard
Last active August 29, 2015 13:56
Show Gist options
  • Save andy-leonard/9077193 to your computer and use it in GitHub Desktop.
Save andy-leonard/9077193 to your computer and use it in GitHub Desktop.
"knife solo data bag" in a cookbook - outside of a chef-solo repo
# Create secret key:
openssl rand -base64 512 | tr -d '\r\n' > test/integration/edb_secret
# Create EDB:
knife solo data bag create pgsql_creds postgres --secret-file test/integration/edb_secret \
--data-bag-path test/data_bags
# This creates:
#
# test/data_bags
# └── pgsql_creds
# └── postgres.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment