Skip to content

Commit

Permalink
markdown cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mattray committed May 4, 2011
1 parent b5713a2 commit 4b12103
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions data_bags/README.md
Expand Up @@ -30,7 +30,7 @@ Encrypted Data Bags
Added in Chef 0.10, encrypted data bags allow you to encrypt the contents of your data bags. The content of attributes will no longer be searchable. To use encrypted data bags, first you must have or create a secret key.

openssl rand -base64 512 > secret_key

You may use this secret_key to add items to a data bag during a create.

knife data bag create --secret-file secret_key passwords mysql
Expand All @@ -39,13 +39,13 @@ You may also use it when adding ITEMs from files,

knife data bag create passwords
knife data bag from file passwords data_bags/passwords/mysql.json --secret-file secret_key

The JSON for the ITEM must contain a key named "id" with a value equal to "ITEM" and the contents will be encrypted when uploaded. For example,

{
"id": "mysql",
"password": "abc123"
}
{
"id": "mysql",
"password": "abc123"
}

Without the secret_key, the contents are encrypted.

Expand All @@ -55,7 +55,7 @@ Without the secret_key, the contents are encrypted.

Use the secret_key to view the contents.

knife data bag show passwords mysql --secret-file secret_key
knife data bag show passwords mysql --secret-file secret_key
id: mysql
password: abc123

0 comments on commit 4b12103

Please sign in to comment.