aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/clamp/charts
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2018-12-12 11:06:56 -0500
committerAlex Shatov <alexs@att.com>2018-12-12 11:06:56 -0500
commit473e153fc2c205af48fa1c7be13f7a96ab4afe47 (patch)
tree278c7de4ab7cfc8c4bbadd978cecf30ca15a19ae /kubernetes/clamp/charts
parent671c3510bc1e2cab0b8886fe64c87c7c31d67d44 (diff)
3.1.0-deployment-handler 4.5.0-policy-handler
Change-Id: Ibc02516225eca75092600461eb9348bb75011720 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-853 Issue-ID: DCAEGEN2-903 Issue-ID: DCAEGEN2-929 Issue-ID: DCAEGEN2-930 Issue-ID: DCAEGEN2-1017
Diffstat (limited to 'kubernetes/clamp/charts')
0 files changed, 0 insertions, 0 deletions
> 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
#
# ============LICENSE_START=======================================================
#  Copyright (C) 2019 Nordix Foundation.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
#

tosca_definitions_version: cloudify_dsl_1_3

imports:
  - "http://www.getcloudify.org/spec/cloudify/3.4/types.yaml"
  - "https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R4/k8splugin/1.4.5/k8splugin_types.yaml"

inputs:
  tag_version:
    type: string
    description: Docker image to be used
    default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pm-mapper:latest"
  replicas:
    type: integer
    description: Number of instances
    default: 1
  aaf_username:
    type: string
    description: AAF user name
    default: "username"
  aaf_password:
    type: string
    description: AAF password
    default: "password"
  client_role:
    type: string
    description: Client role to request secure access to topic
    default: "org.onap.dmaap.mr.PM_MAPPER.pub"
  client_id:
    type: string
    description: Client id for given AAF client
    default: "ves-pub-1"
  dmaap_dr_username:
    type: string
    description: DMAAP Data Router user name
    default: "username"
  dmaap_dr_password:
    type: string
    description: DMAAP Data Router password
    default: "password"
  dcae_location:
    type: string
    description: DCAE location for the subscriber, used to set up routing
    default: "san-francisco"
  pm_mapper_service_protocol:
    type: string
    description: PM Mapper protocol
    default: "https"
  pm_mapper_service_port:
    type: string
    description: PM Mapper host port
    default: "8443"
  dmaap_dr_service_host:
    type: string
    description: DMAAP Data Router host address
    default: "dmaap-dr-node"
  dmaap_dr_service_port:
    type: string
    description: DMAAP Data Router host port
    default: "8443"
  dmaap_mr_service_host:
    type: string
    description: DMAAP Message Router host address
    default: "dmaap-mr"
  dmaap_mr_service_port:
    type: string
    description: DMAAP Message Router host port
    default: "3905"
  filter:
    type: string
    description: PM Mapper filter on measInfo, measInfoId, measType, instanceId
    default: "{ \"filters\":[]}"
  enable_http:
    type: boolean
    description: Option to turn on HTTP connections
    default: false

node_templates:
  pm-mapper:
    interfaces:
      cloudify.interfaces.lifecycle:
        start:
          inputs:
            ports:
              - '8443:0'
              - '8081:0'
    properties:
      application_config:
        enable_http:
          { get_input: enable_http }
        trust_store_path: "/opt/app/pm-mapper/etc/cert/trust.jks.b64"
        trust_store_pass_path: "/opt/app/pm-mapper/etc/cert/trust.pass"
        key_store_path: "/opt/app/pm-mapper/etc/cert/cert.jks.b64"
        key_store_pass_path: "/opt/app/pm-mapper/etc/cert/cert.pass"
        buscontroller_feed_subscription_endpoint:
          { concat: ["http://", { get_input: dmaap_buscontroller_service_host },
                     ":", { get_input: dmaap_buscontroller_service_port}, "/webapi/dr_subs"]}
        dmaap_dr_feed_id:
          get_input: dmaap_dr_feed_id
        dmaap_dr_feed_name: "bulk_pm_feed"
        dmaap_dr_delete_endpoint:
          { concat: ["https://", { get_input: dmaap_dr_service_host },
                     ":", { get_input: dmaap_dr_service_port},"/delete"]}
        pm-mapper-filter:
          get_input: filter
        streams_subscribes:
          dmaap_subscriber:
            type:
              "data_router"
            dmaap_info:
              username:
                get_input: dmaap_dr_username
              password:
                get_input: dmaap_dr_password
              location:
                get_input: dcae_location
              subscriber_id: "1"
              delivery_url:
                { concat: [{ get_input: pm_mapper_service_protocol },"://dcae-pm-mapper:",{ get_input: pm_mapper_service_port },"/delivery"]}
        streams_publishes:
          dmaap_publisher:
            aaf_username:
              get_input: aaf_username
            aaf_password:
              get_input: aaf_password
            type:
              "message_router"
            dmaap_info:
              client_role:
                get_input: client_role
              client_id:
                get_input: client_id
              topic_url:
                { concat: [{ get_input: pm_mapper_service_protocol },"://",{ get_input: dmaap_mr_service_host },
                           ":",{ get_input: dmaap_mr_service_port },"/events/PM_MAPPER"]}
              location:
                get_input: dcae_location
      docker_config:
        healthcheck:
          endpoint: /healthcheck
          interval: 15s
          timeout: 1s
          type: https
      image:
        get_input: tag_version
      replicas: { get_input: replicas }
      name: "dcae-pm-mapper"
      dns_name: "dcae-pm-mapper"
      log_info:
        log_directory: "/var/log/ONAP/dcaegen2/services/pm-mapper"
      tls_info:
        cert_directory: "/opt/app/pm-mapper/etc/cert/"
        use_tls: true
    type: dcae.nodes.ContainerizedPlatformComponent