2 # ============LICENSE_START=======================================================
3 # Copyright (C) 2020 Nordix Foundation.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the 'License');
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an 'AS IS' BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
21 tosca_definitions_version: cloudify_dsl_1_3
24 - 'http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml'
25 - plugin:k8splugin?version=3.4.3
26 - plugin:pgaas?version=1.3.0
30 description: Docker image to be used
31 default: 'nexus3.onap.org:10001/onap/org.onap.dcaegen2.services.pmsh:1.1.2'
34 description: Number of instances
36 operational_policy_name:
38 default: 'pmsh-operational-policy'
41 default: 'pmsh-control-loop'
42 pmsh_publish_topic_name:
44 default: 'unauthenticated.DCAE_CL_OUTPUT'
45 policy_feedback_topic_name:
47 default: 'unauthenticated.PMSH_CL_INPUT'
48 aai_notification_topic_name:
51 publisher_client_role:
53 description: Client role to request secure access to topic
54 default: 'org.onap.dcae.pmPublisher'
55 subscriber_client_role:
57 description: Client role to request secure access to topic
58 default: 'org.onap.dcae.pmSubscriber'
61 description: DCAE location for the subscriber, used to set up routing
62 default: 'san-francisco'
77 default: 'dcae-pg-primary.onap'
83 description: PMSH protocol. If enable_tls is false, set to http
87 type: dcae.nodes.pgaas.database
89 writerfqdn: { get_input: pgaas_cluster_name }
92 type: dcae.nodes.ContainerizedServiceComponentUsingDmaap
94 cloudify.interfaces.lifecycle:
101 { get_attribute: [ pgaasvm, admin, host ] }
103 { get_attribute: [ pgaasvm, admin, password ] }
105 { get_attribute: [ pgaasvm, admin, user ] }
107 { get_attribute: [ pgaasvm, admin, database ] }
110 - type: cloudify.relationships.depends_on
114 service_component_type: 'dcae-pmsh'
115 service_component_name_override: 'dcae-pmsh'
117 enable_tls: { get_input: enable_tls }
118 aaf_identity: 'dcae@dcae.onap.org'
119 aaf_password: 'demo123456!'
120 operational_policy_name: { get_input: operational_policy_name }
121 control_loop_name: { get_input: control_loop_name }
122 cert_path: '/opt/app/pmsh/etc/certs/cert.pem'
123 key_path: '/opt/app/pmsh/etc/certs/key.pem'
124 ca_cert_path: '/opt/app/pmsh/etc/certs/cacert.pem'
129 topic_url: {concat: ["https://message-router:3905/events/", { get_input: pmsh_publish_topic_name }]}
131 policy_pm_subscriber:
134 topic_url: {concat: ["https://message-router:3905/events/", { get_input: policy_feedback_topic_name }]}
138 topic_url: {concat: ["https://message-router:3905/events/", { get_input: aai_notification_topic_name }]}
141 cpu: { get_input: cpu_limit }
142 memory: { get_input: memory_limit }
144 cpu: { get_input: cpu_request }
145 memory: { get_input: memory_request }
148 endpoint: /healthcheck
151 type: { get_input: protocol }
152 image: { get_input: tag_version }
153 replicas: { get_input: replicas }
155 log_directory: '/var/log/ONAP/dcaegen2/services/pmsh'
157 cert_directory: '/opt/app/pmsh/etc/certs'
158 use_tls: { get_input: enable_tls }