summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lucas <jflucas@research.att.com>2018-04-05 15:16:48 +0000
committerJack Lucas <jflucas@research.att.com>2018-04-05 15:28:24 +0000
commit354c0932e910f6e12eb8274ec243fef6a2e36133 (patch)
tree183a8b66e724885f56f8ff2c90f9b72166dc3d26
parent42adb82abbdde5b472050d460c9e8687648e70df (diff)
Supply CM password from secret
Change-Id: I88b0817c0fb2becdf44dd9d9012d19e4d5174c63 Issue-ID: DCAEGEN2-411 Signed-off-by: Jack Lucas <jflucas@research.att.com>
-rw-r--r--blueprints/k8s-deployment_handler.yaml-template10
1 files changed, 10 insertions, 0 deletions
diff --git a/blueprints/k8s-deployment_handler.yaml-template b/blueprints/k8s-deployment_handler.yaml-template
index 3aae790..9d4c5b8 100644
--- a/blueprints/k8s-deployment_handler.yaml-template
+++ b/blueprints/k8s-deployment_handler.yaml-template
@@ -72,3 +72,13 @@ node_templates:
version: 'v4'
log_info:
log_directory: '/opt/app/dh/log'
+ # Inject CM password through environment variable
+ # so that it does not appear in Consul
+ interfaces:
+ cloudify.interfaces.lifecycle:
+ start:
+ inputs:
+ envs:
+ CLOUDIFY_PASSWORD: { get_secret: cmpass }
+ CLOUDIFY_USER: admin
+