1 # ============LICENSE_START====================================================
3 # =============================================================================
4 # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
5 # =============================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END======================================================
19 tosca_definitions_version: cloudify_dsl_1_3
22 - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/k8splugin/1.4.13/k8splugin_types.yaml"
23 - "{{ 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-ui'
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
91 concat: ["http://", { get_input: consul_url },":8500"]
92 #cfy_url: http://dcae-cloudify-manager:8080
94 concat: ["http://", { get_input: cloudify_ip },"/api/v3.1"]
95 inventory_url: http://inventory:8080
96 dhandler_url: https://deployment-handler:8443
98 - concat: ["8080:", { get_input: external_port }]
99 - concat: ["8443:", { get_input: external_tls_port }]
104 { get_input: dashboard_docker_image }
105 replicas: {get_input: replicas}
106 dns_name: 'dcae-dashboard'
108 cert_directory: '/usr/local/share/ca-certificates/'
112 endpoint: /ccsdk-app/health
117 - type: cloudify.relationships.depends_on