summaryrefslogtreecommitdiffstats
path: root/heat/register.sh
diff options
context:
space:
mode:
authorelinuxhenrik <henrik.b.andersson@est.tech>2018-10-09 14:36:38 +0200
committerHenrik Andersson <henrik.b.andersson@est.tech>2018-10-10 11:35:27 +0000
commit204bf4c599685d20a315ed43f6a3339a4fd356ef (patch)
tree36f65e4b0e870b2ff286fb22895d38ed275c933c /heat/register.sh
parent65e8bdac293ea4d9af9b2e24b9e8ea0e437ad11a (diff)
Add configuration for Data File Collector
Change-Id: I6a6f63140c08c94f3e673f11db8d616e7093b6f2 Issue-ID: DCAEGEN2-860 Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Diffstat (limited to 'heat/register.sh')
-rwxr-xr-xheat/register.sh32
1 files changed, 27 insertions, 5 deletions
diff --git a/heat/register.sh b/heat/register.sh
index 6bd7b7b..9b7f508 100755
--- a/heat/register.sh
+++ b/heat/register.sh
@@ -49,8 +49,8 @@ HOSTNAME_STATIC_PRH="static-dcaegen2-services-prh"
SRVCNAME_STATIC_PRH="static-dcaegen2-services-prh"
HOSTNAME_STATIC_HVVES="static-dcaegen2-collectors-hvves"
SRVCNAME_STATIC_HVVES="static-dcaegen2-collectors-hvves"
-HOSTNAME_STATIC_DF="static-dcaegen2-collectors-df"
-SRVCNAME_STATIC_DF="static-dcaegen2-collectors-df"
+HOSTNAME_STATIC_DFC="static-dcaegen2-collectors-datafile"
+SRVCNAME_STATIC_DFC="static-dcaegen2-collectors-datafile"
# registering docker host
@@ -512,9 +512,31 @@ curl -v -X PUT -H "Content-Type: application/json" \
# data file collector
-SERVICENAME="${SRVCNAME_STATIC_DF}"
-REGKV='{
-}'
+SERVICENAME="${SRVCNAME_STATIC_DFC}"
+ REGKV='{
+ "dmaap.dmaapConsumerConfiguration.dmaapHostName": "{{ mr_ip_addr }}",
+ "dmaap.dmaapConsumerConfiguration.dmaapPortNumber": 2222,
+ "dmaap.dmaapConsumerConfiguration.dmaapTopicName": "/events/unauthenticated.VES_NOTIFICATION_OUTPUT",
+ "dmaap.dmaapConsumerConfiguration.dmaapProtocol": "http",
+ "dmaap.dmaapConsumerConfiguration.dmaapUserName": "",
+ "dmaap.dmaapConsumerConfiguration.dmaapUserPassword": "",
+ "dmaap.dmaapConsumerConfiguration.dmaapContentType": "application/json",
+ "dmaap.dmaapConsumerConfiguration.consumerId": "C12",
+ "dmaap.dmaapConsumerConfiguration.consumerGroup": "OpenDcae-c12",
+ "dmaap.dmaapConsumerConfiguration.timeoutMs": -1,
+ "dmaap.dmaapConsumerConfiguration.messageLimit": 1,
+ "dmaap.dmaapProducerConfiguration.dmaapHostName": "{{ dr_ip_addr }}",
+ "dmaap.dmaapProducerConfiguration.dmaapPortNumber": 3907,
+ "dmaap.dmaapProducerConfiguration.dmaapTopicName": "publish",
+ "dmaap.dmaapProducerConfiguration.dmaapProtocol": "https",
+ "dmaap.dmaapProducerConfiguration.dmaapUserName": "dradmin",
+ "dmaap.dmaapProducerConfiguration.dmaapUserPassword": "dradmin",
+ "dmaap.dmaapProducerConfiguration.dmaapContentType": "application/octet-stream",
+ "ftp.ftpesConfiguration.keyCert": "config/ftpKey.jks",
+ "ftp.ftpesConfiguration.keyPassword": "secret",
+ "ftp.ftpesConfiguration.trustedCA": "config/cacerts",
+ "ftp.ftpesConfiguration.trustedCAPassword": "secret"
+ }'
curl -v -X PUT -H "Content-Type: application/json" \
--data "${REGKV}" \
"http://${HOSTNAME_CONSUL}:8500/v1/kv/${SERVICENAME}"