diff options
author | vasraz <vasyl.razinkov@est.tech> | 2020-01-31 14:38:43 +0000 |
---|---|---|
committer | Yuli Shlosberg <ys9693@att.com> | 2020-02-05 07:42:14 +0000 |
commit | 73fa45ca5aa62dfa4aa074125c384ffbaad60387 (patch) | |
tree | 50f6538e1a7baf99a72bff1a205253d7b6853fe1 /sdc-os-chef/sdc-elasticsearch/chef-solo/data_bags | |
parent | 65f0aa37a9d182b406a3615af36b139e0b7091ed (diff) |
Remove ES & Kibana
Change-Id: I983a0fe570b1a2cbf641f4285ef030be686bed32
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-2724
Diffstat (limited to 'sdc-os-chef/sdc-elasticsearch/chef-solo/data_bags')
-rw-r--r-- | sdc-os-chef/sdc-elasticsearch/chef-solo/data_bags/README.md | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/sdc-os-chef/sdc-elasticsearch/chef-solo/data_bags/README.md b/sdc-os-chef/sdc-elasticsearch/chef-solo/data_bags/README.md deleted file mode 100644 index 0c15a391fa..0000000000 --- a/sdc-os-chef/sdc-elasticsearch/chef-solo/data_bags/README.md +++ /dev/null @@ -1,63 +0,0 @@ -Data Bags ---------- - -This directory contains directories of the various data bags you create for your infrastructure. Each subdirectory corresponds to a data bag on the Chef Server, and contains JSON files of the items that go in the bag. - -First, create a directory for the data bag. - - mkdir data_bags/BAG - -Then create the JSON files for items that will go into that bag. - - $EDITOR data_bags/BAG/ITEM.json - -The JSON for the ITEM must contain a key named "id" with a value equal to "ITEM". For example, - - { - "id": "foo" - } - -Next, create the data bag on the Chef Server. - - knife data bag create BAG - -Then upload the items in the data bag's directory to the Chef Server. - - knife data bag from file BAG ITEM.json - - -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 - -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" - } - -Without the secret_key, the contents are encrypted. - - knife data bag show passwords mysql - id: mysql - password: 2I0XUUve1TXEojEyeGsjhw== - -Use the secret_key to view the contents. - - knife data bag show passwords mysql --secret-file secret_key - id: mysql - password: abc123 - |