blob: 1d0fa1048247c72ecbf1d37afc96df6f7428156c [file] [log] [blame]
Vijay Venkatesh Kumar939daa02019-04-04 23:08:05 +00001# ============LICENSE_START====================================================
2# org.onap.dcae
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
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
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======================================================
18
19tosca_definitions_version: cloudify_dsl_1_3
20
21imports:
Vijay Venkatesh Kumar51bdfc62019-04-23 21:55:46 +000022- "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/k8splugin/1.4.13/k8splugin_types.yaml"
Vijay Venkatesh Kumar939daa02019-04-04 23:08:05 +000023- "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_ccsdk_platform_plugins_releases }}/type_files/pgaas/1.1.0/pgaas_types.yaml"
Vijay Venkatesh Kumar51bdfc62019-04-23 21:55:46 +000024
Vijay Venkatesh Kumar939daa02019-04-04 23:08:05 +000025inputs:
26 database_cluster_name:
27 type: string
28 default: 'dcae-pg-primary.onap'
29 database_cluster_fqdn:
30 type: string
31 default: 'dcae-pg-primary.onap.svc.cluster.local'
32 database_name:
33 type: string
34 default: 'dashboard_pg'
35 postgres_port:
36 description: 'Postgres port for dashboard'
37 default: '5432'
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'
41 cloudify_ip:
42 type: string
43 default: 'dcae-cloudify-manager'
44 cloudify_user:
45 type: string
46 default: 'admin'
47 cloudify_password:
48 type: string
49 default: 'admin'
50 consul_url:
51 type: string
Vijay Venkatesh Kumar51bdfc62019-04-23 21:55:46 +000052 default: 'consul-server-ui'
Vijay Venkatesh Kumar939daa02019-04-04 23:08:05 +000053 external_port:
54 type: string
55 description: Kubernetes node port for standard http
Jack Lucas01b98692019-04-10 09:06:34 -040056 default: "30418"
Vijay Venkatesh Kumar939daa02019-04-04 23:08:05 +000057 external_tls_port:
58 type: string
59 description: Kubernetes node port for standard https
Jack Lucas01b98692019-04-10 09:06:34 -040060 default: "30419"
Vijay Venkatesh Kumar939daa02019-04-04 23:08:05 +000061 replicas:
62 type: integer
63 description: number of instances
64 default: 1
65node_templates:
66 pgaasdb:
67 type: dcae.nodes.pgaas.database
68 properties:
69 writerfqdn: { get_input: database_cluster_name }
70 name: { get_input: database_name }
71 dashboard_deployment:
72 type: dcae.nodes.ContainerizedPlatformComponent
73 interfaces:
74 cloudify.interfaces.lifecycle:
75 start:
76 inputs:
77 envs:
78 postgres_ip:
79 { get_input: database_cluster_fqdn }
80 postgres_db_name:
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 }
Vijay Venkatesh Kumar51bdfc62019-04-23 21:55:46 +000089 #consul_url: http://consul-server.onap.svc.cluster.local
90 consul_url:
91 concat: ["http://", { get_input: consul_url },":8500"]
92 #cfy_url: http://dcae-cloudify-manager:8080
93 cfy_url:
94 concat: ["http://", { get_input: cloudify_ip },"/api/v3.1"]
Vijay Venkatesh Kumar939daa02019-04-04 23:08:05 +000095 inventory_url: http://inventory:8080
96 dhandler_url: https://deployment-handler:8443
97 ports:
Jack Lucas01b98692019-04-10 09:06:34 -040098 - concat: ["8080:", { get_input: external_port }]
99 - concat: ["8443:", { get_input: external_tls_port }]
Vijay Venkatesh Kumar939daa02019-04-04 23:08:05 +0000100 properties:
101 name:
102 "dcae-dashboard"
103 image:
104 { get_input: dashboard_docker_image }
105 replicas: {get_input: replicas}
106 dns_name: 'dcae-dashboard'
Vijay Venkatesh Kumar51bdfc62019-04-23 21:55:46 +0000107 tls_info:
108 cert_directory: '/usr/local/share/ca-certificates/'
109 use_tls: true
Vijay Venkatesh Kumar939daa02019-04-04 23:08:05 +0000110 docker_config:
111 healthcheck:
112 endpoint: /ccsdk-app/health
113 interval: 15s
114 timeout: 1s
Jack Lucas01b98692019-04-10 09:06:34 -0400115 type: http
Vijay Venkatesh Kumar939daa02019-04-04 23:08:05 +0000116 relationships:
117 - type: cloudify.relationships.depends_on
118 target: pgaasdb
119