2 # ============LICENSE_START====================================================
4 # =============================================================================
5 # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
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
11 # http://www.apache.org/licenses/LICENSE-2.0
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======================================================
20 tosca_definitions_version: cloudify_dsl_1_3
23 - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/k8splugin/1.4.12/k8splugin_types.yaml"
24 - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_ccsdk_platform_plugins_releases }}/type_files/pgaas/1.1.0/pgaas_types.yaml"
26 database_cluster_name:
28 default: 'dcae-pg-primary.onap'
29 database_cluster_fqdn:
31 default: 'dcae-pg-primary.onap.svc.cluster.local'
34 default: 'dashboard_pg'
36 description: 'Postgres port for dashboard'
38 dashboard_docker_image:
39 description: 'Docker image for dashboard'
40 default: 'nexus3.onap.org:10001/onap/org.onap.ccsdk.dashboard.ccsdk-app-os:1.1.0-SNAPSHOT-latest'
43 default: 'dcae-cloudify-manager'
52 default: 'consul-server.onap.svc.cluster.local'
55 description: Kubernetes node port for standard http
59 description: Kubernetes node port for standard https
63 description: number of instances
67 type: dcae.nodes.pgaas.database
69 writerfqdn: { get_input: database_cluster_name }
70 name: { get_input: database_name }
72 type: dcae.nodes.ContainerizedPlatformComponent
74 cloudify.interfaces.lifecycle:
79 { get_input: database_cluster_fqdn }
81 { get_input: database_name }
82 postgres_password_dashboard:
83 { get_attribute: [ pgaasdb, admin, password ] }
84 postgres_user_dashboard:
85 { get_attribute: [ pgaasdb, admin, user ] }
86 postgres_port: { get_input: postgres_port }
87 cloudify_user: { get_input: cloudify_user }
88 cloudify_password: { get_input: cloudify_password }
89 consul_url: http://consul-server.onap.svc.cluster.local
90 #consul_url: concat: ["http://", { get_input: consul_url }]
91 cfy_url: http://dcae-cloudify-manager:8080
92 #cfy_url: concat: ["http://", { get_input: cloudify_ip },":8080"]
93 inventory_url: http://inventory:8080
94 dhandler_url: https://deployment-handler:8443
96 - concat: ["8080:", { get_input: external_port }]
97 - concat: ["8443:", { get_input: external_tls_port }]
102 { get_input: dashboard_docker_image }
103 replicas: {get_input: replicas}
104 dns_name: 'dcae-dashboard'
107 endpoint: /ccsdk-app/health
112 - type: cloudify.relationships.depends_on