Supply CM password from secret 11/41211/1
authorJack Lucas <jflucas@research.att.com>
Thu, 5 Apr 2018 15:16:48 +0000 (15:16 +0000)
committerJack Lucas <jflucas@research.att.com>
Thu, 5 Apr 2018 15:28:24 +0000 (15:28 +0000)
Change-Id: I88b0817c0fb2becdf44dd9d9012d19e4d5174c63
Issue-ID: DCAEGEN2-411
Signed-off-by: Jack Lucas <jflucas@research.att.com>
blueprints/k8s-deployment_handler.yaml-template

index 3aae790..9d4c5b8 100644 (file)
@@ -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
+