YongchaoWu | ac8a0a5 | 2019-03-04 11:10:53 +0000 | [diff] [blame] | 1 | # -*- indent-tabs-mode: nil -*- # vi: set expandtab: |
| 2 | # |
| 3 | # ============LICENSE_START==================================================== |
| 4 | # ============================================================================= |
| 5 | # Copyright (C) 2019 Nordix Foundation. |
| 6 | # ============================================================================= |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| 18 | # ============LICENSE_END====================================================== |
| 19 | |
| 20 | tosca_definitions_version: cloudify_dsl_1_3 |
| 21 | |
| 22 | imports: |
| 23 | - "http://www.getcloudify.org/spec/cloudify/3.4/types.yaml" |
| 24 | - "https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R3/k8splugin/1.4.4/k8splugin_types.yaml" |
| 25 | |
| 26 | inputs: |
| 27 | dmaap_mr_host: |
| 28 | type: string |
| 29 | description: dmaap messagerouter host |
| 30 | default: message-router.onap.svc.cluster.local |
| 31 | dmaap_mr_port: |
| 32 | type: integer |
| 33 | description: dmaap messagerouter port |
| 34 | default: 3904 |
| 35 | dmaap_mr_user: |
| 36 | type: string |
| 37 | description: dmaap messagerouter user name |
YongchaoWu | 84e13d3 | 2019-03-14 15:14:55 +0000 | [diff] [blame] | 38 | default: "" |
YongchaoWu | ac8a0a5 | 2019-03-04 11:10:53 +0000 | [diff] [blame] | 39 | dmaap_mr_passwd: |
| 40 | type: string |
| 41 | description: dmaap messagerouter password |
YongchaoWu | 84e13d3 | 2019-03-14 15:14:55 +0000 | [diff] [blame] | 42 | default: "" |
YongchaoWu | ac8a0a5 | 2019-03-04 11:10:53 +0000 | [diff] [blame] | 43 | dmaap_buscontroller_service_host: |
| 44 | type: string |
| 45 | description: DMAAP Bus Controller host address |
| 46 | default: "dmaap-bc.onap.svc.cluster.local" |
| 47 | dmaap_buscontroller_service_port: |
| 48 | type: string |
| 49 | description: DMAAP bus Controller host port |
| 50 | default: "6666" |
| 51 | dmaap_dr_feed_id: |
| 52 | type: string |
| 53 | description: ID of the data router feed that datafile will publish |
| 54 | default: "bulk_pm_feed" |
| 55 | dmaap_dr_host: |
| 56 | type: string |
| 57 | description: dmaap datarouter host |
| 58 | default: dmaap-dr-prov.onap.svc.cluster.local |
| 59 | dmaap_dr_port: |
| 60 | type: integer |
| 61 | description: dmaap datarouter port |
| 62 | default: 8443 |
| 63 | dmaap_dr_user: |
| 64 | type: string |
| 65 | description: dmaap datarouter user name |
| 66 | default: "dradmin" |
| 67 | dmaap_dr_passwd: |
| 68 | type: string |
| 69 | description: dmaap datarouter password |
| 70 | default: "dradmin" |
| 71 | tag_version: |
| 72 | type: string |
| 73 | default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:1.0-SNAPSHOT" |
| 74 | replicas: |
| 75 | type: integer |
| 76 | description: number of instances |
| 77 | default: 1 |
| 78 | host_port: |
| 79 | type: integer |
| 80 | description: port on Kubernetes host where datafile API will be exposed |
| 81 | default: 30223 |
| 82 | host_port_secure: |
| 83 | type: integer |
| 84 | description: secure port on Kubernetes host where datafile API will be exposed |
| 85 | default: 30224 |
| 86 | secureEnableCert: |
| 87 | type: boolean |
| 88 | description: enable certificate base connection with PNF and DMaap |
| 89 | default: false |
| 90 | node_templates: |
| 91 | datafile-collector: |
| 92 | interfaces: |
| 93 | cloudify.interfaces.lifecycle: |
| 94 | start: |
| 95 | inputs: |
| 96 | ports: |
| 97 | - concat: ["8100:", { get_input: host_port }] |
| 98 | - concat: ["8433:", { get_input: host_port_secure}] |
| 99 | properties: |
| 100 | application_config: |
YongchaoWu | ac8a0a5 | 2019-03-04 11:10:53 +0000 | [diff] [blame] | 101 | dmaap.ftp.ftpesConfiguration.keyCert: "/config/ftpKey.jks" |
| 102 | dmaap.ftp.ftpesConfiguration.keyPassword: "secret" |
| 103 | dmaap.ftp.ftpesConfiguration.trustedCA: "/config/cacerts" |
| 104 | dmaap.ftp.ftpesConfiguration.trustedCAPassword: "secret" |
| 105 | dmaap.security.trustStorePath: "/opt/app/datafile/etc/cert/trust.jks" |
| 106 | dmaap.security.trustStorePasswordPath: "/opt/app/datafile/etc/cert/trust.pass" |
| 107 | dmaap.security.keyStorePath: "/opt/app/datafile/etc/cert/key.p12" |
| 108 | dmaap.security.keyStorePasswordPath: "/opt/app/datafile/etc/cert/key.pass" |
| 109 | dmaap.security.enableDmaapCertAuth: { get_input: secureEnableCert } |
| 110 | streams_subscribes: |
| 111 | dmaap_subscriber: |
| 112 | type: |
| 113 | "message_router" |
| 114 | dmmap_info: |
YongchaoWu | 84e13d3 | 2019-03-14 15:14:55 +0000 | [diff] [blame] | 115 | topic_url: |
YongchaoWu | 8b47d21 | 2019-03-18 14:17:02 +0000 | [diff] [blame^] | 116 | "http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT/" |
YongchaoWu | ac8a0a5 | 2019-03-04 11:10:53 +0000 | [diff] [blame] | 117 | streams_publishes: |
| 118 | dmaap_publisher: |
| 119 | type: |
| 120 | "data_router" |
| 121 | dmaap_info: |
YongchaoWu | 8b47d21 | 2019-03-18 14:17:02 +0000 | [diff] [blame^] | 122 | username: |
| 123 | get_input: dmaap_dr_host |
| 124 | password: |
| 125 | get_input: dmaap_dr_passwd |
YongchaoWu | 84e13d3 | 2019-03-14 15:14:55 +0000 | [diff] [blame] | 126 | publish_url: |
YongchaoWu | 8b47d21 | 2019-03-18 14:17:02 +0000 | [diff] [blame^] | 127 | { concat: ["http://", { get_input: dmaap_dr_user }, ".onap.svc.cluster.local", |
| 128 | ":",{get_input: dmaap_dr_port},"/publish"]} |
YongchaoWu | ac8a0a5 | 2019-03-04 11:10:53 +0000 | [diff] [blame] | 129 | docker_config: |
| 130 | healthcheck: |
| 131 | endpoint: /heartbeat |
| 132 | interval: 15s |
| 133 | timeout: 1s |
| 134 | type: http |
| 135 | image: |
| 136 | get_input: tag_version |
| 137 | replicas: {get_input: replicas} |
| 138 | name: 'dcae-datafile-collector' |
| 139 | dns_name: 'dcae-datafile-collector' |
| 140 | log_info: |
| 141 | log_directory: "/opt/app/datafile/logs" |
| 142 | tls_info: |
| 143 | cert_directory: '/opt/app/datafile/etc/cert/' |
| 144 | use_tls: true |
| 145 | type: dcae.nodes.ContainerizedPlatformComponent |