From cae9ebccfdb64595f9b7ab7a50ef80f8d09accc3 Mon Sep 17 00:00:00 2001 From: Chengkai Yan Date: Mon, 21 Jan 2019 08:23:42 +0100 Subject: Add new fields for application config Change-Id: I9a814e71b5e7e559cfc8313d65ec5e15d2520a09 Issue-ID: DCAEGEN2-1096 Signed-off-by: Chengkai Yan --- blueprints/k8s-datafile-collector.yaml-template | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/blueprints/k8s-datafile-collector.yaml-template b/blueprints/k8s-datafile-collector.yaml-template index 1f29df0..152c923 100644 --- a/blueprints/k8s-datafile-collector.yaml-template +++ b/blueprints/k8s-datafile-collector.yaml-template @@ -71,6 +71,10 @@ inputs: type: integer description: secure port on Kubernetes host where datafile API will be exposed default: 30224 + secureEnableCert: + type: boolean + description: enable certificate base connection with PNF and DMaap + default: false node_templates: datafile-collector: interfaces: @@ -104,6 +108,11 @@ node_templates: dmaap.ftp.ftpesConfiguration.keyPassword: "secret" dmaap.ftp.ftpesConfiguration.trustedCA: "/config/cacerts" dmaap.ftp.ftpesConfiguration.trustedCAPassword: "secret" + dmaap.security.trustStorePath: "/opt/app/datafile/etc/cert/trust.jks" + dmaap.security.trustStorePasswordPath: "/opt/app/datafile/etc/cert/trust.pass" + dmaap.security.keyStorePath: "/opt/app/datafile/etc/cert/key.p12" + dmaap.security.keyStorePasswordPath: "/opt/app/datafile/etc/cert/key.pass" + dmaap.security.enableDmaapCertAuth: { get_input: secureEnableCert } docker_config: healthcheck: endpoint: /heartbeat @@ -117,4 +126,7 @@ node_templates: dns_name: 'dcae-datafile-collector' log_info: log_directory: "/opt/app/datafile/logs" + tls_info: + cert_directory: '/opt/app/datafile/etc/cert/' + use_tls: true type: dcae.nodes.ContainerizedPlatformComponent -- cgit 1.2.3-korg