Datafile intergration into blueprints 01/67401/8
authorPaul Dennehy <paul.p.dennehy@ericsson.com>
Tue, 18 Sep 2018 17:44:48 +0000 (18:44 +0100)
committerPaul Dennehy <paul.p.dennehy@ericsson.com>
Tue, 25 Sep 2018 08:46:23 +0000 (09:46 +0100)
Change-Id: Ie52ff8f99b1a619e3ccc097aed605e236b1c5741
Signed-off-by: Paul Dennehy <paul.p.dennehy@ericsson.com>
Issue-ID: DCAEGEN2-638

blueprints/k8s-datafile-collector.yaml-template [new file with mode: 0644]
input-templates/datafile-collector-input.yaml [new file with mode: 0644]

diff --git a/blueprints/k8s-datafile-collector.yaml-template b/blueprints/k8s-datafile-collector.yaml-template
new file mode 100644 (file)
index 0000000..55b4bf3
--- /dev/null
@@ -0,0 +1,116 @@
+# -*- indent-tabs-mode: nil -*- # vi: set expandtab:\r
+#\r
+# ============LICENSE_START====================================================\r
+# =============================================================================\r
+# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.\r
+# =============================================================================\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+#      http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+# ============LICENSE_END======================================================\r
+\r
+tosca_definitions_version: cloudify_dsl_1_3\r
+\r
+imports:\r
+- "http://www.getcloudify.org/spec/cloudify/3.4/types.yaml"\r
+- {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/k8splugin/1.4.3/k8splugin_types.yaml\r
+\r
+inputs:\r
+  dmaap_mr_host:\r
+    type: string\r
+    description: dmaap messagerouter host\r
+    default: message-router.onap.svc.cluster.local\r
+  dmaap_mr_port:\r
+    type: integer\r
+    description: dmaap messagerouter port\r
+    default: 3904\r
+  dmaap_mr_user:\r
+    type: string\r
+    description: dmaap messagerouter user name\r
+    default: "admin"\r
+  dmaap_mr_passwd:\r
+    type: string\r
+    description: dmaap messagerouter password\r
+    default: "admin"\r
+  dmaap_dr_host:\r
+    type: string\r
+    description: dmaap datarouter host\r
+    default: dmaap-dr-prov.onap.svc.cluster.local\r
+  dmaap_dr_port:\r
+    type: integer\r
+    description: dmaap datarouter port\r
+    default: 8443\r
+  dmaap_dr_user:\r
+    type: string\r
+    description: dmaap datarouter user name\r
+    default: "dradmin"\r
+  dmaap_dr_passwd:\r
+    type: string\r
+    description: dmaap datarouter password\r
+    default: "dradmin"\r
+  tag_version:\r
+    type: string\r
+    default: "{{ ONAPTEMPLATE_DOCKERREGURL_org_onap_dcaegen2_releases }}/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:latest"\r
+  replicas:\r
+    type: integer\r
+    description: number of instances\r
+    default: 1\r
+  host_port:\r
+    type: integer\r
+    description: port on Kubernetes host where datafile API will be exposed\r
+    default: 30223\r
+  host_port_secure:\r
+    type: integer\r
+    description: secure port on Kubernetes host where datafile API will be exposed\r
+    default: 30224\r
+node_templates:\r
+  datafile-collector:\r
+    interfaces:\r
+      cloudify.interfaces.lifecycle:\r
+        start:\r
+          inputs:\r
+            ports:\r
+            - concat: ["8100:", { get_input: host_port }]\r
+            - concat: ["8433:", { get_input: host_port_secure}]\r
+    properties:\r
+      application_config:\r
+        dmaap.dmaapConsumerConfiguration.dmaapHostName: { get_input: dmaap_mr_host }\r
+        dmaap.dmaapConsumerConfiguration.dmaapPortNumber: { get_input: dmaap_mr_port }\r
+        dmaap.dmaapConsumerConfiguration.dmaapTopicName: "/events/unauthenticated.VES_NOTIFICATION_OUTPUT"\r
+        dmaap.dmaapConsumerConfiguration.dmaapProtocol: "http"\r
+        dmaap.dmaapConsumerConfiguration.dmaapUserName: { get_input: dmaap_mr_user }\r
+        dmaap.dmaapConsumerConfiguration.dmaapUserPassword: { get_input: dmaap_mr_passwd }\r
+        dmaap.dmaapConsumerConfiguration.dmaapContentType: "application/json"\r
+        dmaap.dmaapConsumerConfiguration.consumerId: "C12"\r
+        dmaap.dmaapConsumerConfiguration.consumerGroup: "OpenDCAE-c12"\r
+        dmaap.dmaapConsumerConfiguration.timeoutMs: -1\r
+        dmaap.dmaapConsumerConfiguration.messageLimit: -1\r
+        dmaap.dmaapProducerConfiguration.dmaapHostName: { get_input: dmaap_dr_host }\r
+        dmaap.dmaapProducerConfiguration.dmaapPortNumber: { get_input: dmaap_dr_port }\r
+        dmaap.dmaapProducerConfiguration.dmaapTopicName: "publish"\r
+        dmaap.dmaapProducerConfiguration.dmaapProtocol: "https"\r
+        dmaap.dmaapProducerConfiguration.dmaapUserName: { get_input: dmaap_dr_user }\r
+        dmaap.dmaapProducerConfiguration.dmaapUserPassword: { get_input: dmaap_dr_passwd }\r
+        dmaap.dmaapProducerConfiguration.dmaapContentType: "application/octet-stream"\r
+      docker_config:\r
+        healthcheck:\r
+          endpoint: /heartbeat\r
+          interval: 15s\r
+          timeout: 1s\r
+          type: http\r
+      image:\r
+        get_input: tag_version\r
+      replicas: {get_input: replicas}\r
+      name: 'dcae-datafile-collector'\r
+      dns_name: 'dcae-datafile-collector'\r
+      log_info:\r
+        log_directory: "/opt/app/datafile/logs"\r
+    type: dcae.nodes.ContainerizedPlatformComponent\r
diff --git a/input-templates/datafile-collector-input.yaml b/input-templates/datafile-collector-input.yaml
new file mode 100644 (file)
index 0000000..242eba2
--- /dev/null
@@ -0,0 +1,22 @@
+# ================================================================================\r
+# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.\r
+# ================================================================================\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+#\r
+#     http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+# ============LICENSE_END=========================================================\r
+\r
+#dmaap_host: '{{ dmaap_host }}'\r
+#dmaap_port: '{{ dmaap_port }}'\r
+#dmaap_user: '{{ dmaap_user }}'\r
+#dmaap_passwd: '{{ dmaap_passwd }}'\r
+#tag_version: '{{ tag_version }}'\r
+#replicas: '{{ replicas }}'
\ No newline at end of file