summaryrefslogtreecommitdiffstats
path: root/catalog-be/sdc-backend/chef-solo/data_bags/README.md
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-09-17 15:07:23 +0200
committerSébastien Determe <sebastien.determe@intl.att.com>2020-09-18 12:59:54 +0000
commit591810df468a8e2c59569e701f514bff61203940 (patch)
tree9cd9b03ef59319a229bc784d66c02538c3785ec2 /catalog-be/sdc-backend/chef-solo/data_bags/README.md
parent0e825177c8f6c5304d9b529cd9831f30d401efaa (diff)
Introduce a new docker for be plugins
Introduce a new docker image containing the etsi plugin and potentially others + simplify the process to build backend image + cleaning of unused files Issue-ID: SDC-3289 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I82c770b391d169bef3bcc5f5af66e2a24dffb1b4 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'catalog-be/sdc-backend/chef-solo/data_bags/README.md')
-rw-r--r--catalog-be/sdc-backend/chef-solo/data_bags/README.md63
1 files changed, 0 insertions, 63 deletions
diff --git a/catalog-be/sdc-backend/chef-solo/data_bags/README.md b/catalog-be/sdc-backend/chef-solo/data_bags/README.md
deleted file mode 100644
index 0c15a391fa..0000000000
--- a/catalog-be/sdc-backend/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
-