Vijay Venkatesh Kumar | 939daa0 | 2019-04-04 23:08:05 +0000 | [diff] [blame] | 1 | # ============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 | |
| 19 | tosca_definitions_version: cloudify_dsl_1_3 |
| 20 | |
| 21 | imports: |
Vijay Venkatesh Kumar | 51bdfc6 | 2019-04-23 21:55:46 +0000 | [diff] [blame] | 22 | - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/k8splugin/1.4.13/k8splugin_types.yaml" |
Vijay Venkatesh Kumar | 939daa0 | 2019-04-04 23:08:05 +0000 | [diff] [blame] | 23 | - "{{ ONAPTEMPLATE_RAWREPOURL_org_onap_ccsdk_platform_plugins_releases }}/type_files/pgaas/1.1.0/pgaas_types.yaml" |
Vijay Venkatesh Kumar | 51bdfc6 | 2019-04-23 21:55:46 +0000 | [diff] [blame] | 24 | |
Vijay Venkatesh Kumar | 939daa0 | 2019-04-04 23:08:05 +0000 | [diff] [blame] | 25 | inputs: |
| 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 Kumar | 51bdfc6 | 2019-04-23 21:55:46 +0000 | [diff] [blame] | 52 | default: 'consul-server-ui' |
Vijay Venkatesh Kumar | 939daa0 | 2019-04-04 23:08:05 +0000 | [diff] [blame] | 53 | external_port: |
| 54 | type: string |
| 55 | description: Kubernetes node port for standard http |
Jack Lucas | 01b9869 | 2019-04-10 09:06:34 -0400 | [diff] [blame] | 56 | default: "30418" |
Vijay Venkatesh Kumar | 939daa0 | 2019-04-04 23:08:05 +0000 | [diff] [blame] | 57 | external_tls_port: |
| 58 | type: string |
| 59 | description: Kubernetes node port for standard https |
Jack Lucas | 01b9869 | 2019-04-10 09:06:34 -0400 | [diff] [blame] | 60 | default: "30419" |
Vijay Venkatesh Kumar | 939daa0 | 2019-04-04 23:08:05 +0000 | [diff] [blame] | 61 | replicas: |
| 62 | type: integer |
| 63 | description: number of instances |
| 64 | default: 1 |
| 65 | node_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 Kumar | 51bdfc6 | 2019-04-23 21:55:46 +0000 | [diff] [blame] | 89 | #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 Kumar | 939daa0 | 2019-04-04 23:08:05 +0000 | [diff] [blame] | 95 | inventory_url: http://inventory:8080 |
| 96 | dhandler_url: https://deployment-handler:8443 |
| 97 | ports: |
Jack Lucas | 01b9869 | 2019-04-10 09:06:34 -0400 | [diff] [blame] | 98 | - concat: ["8080:", { get_input: external_port }] |
| 99 | - concat: ["8443:", { get_input: external_tls_port }] |
Vijay Venkatesh Kumar | 939daa0 | 2019-04-04 23:08:05 +0000 | [diff] [blame] | 100 | 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 Kumar | 51bdfc6 | 2019-04-23 21:55:46 +0000 | [diff] [blame] | 107 | tls_info: |
| 108 | cert_directory: '/usr/local/share/ca-certificates/' |
| 109 | use_tls: true |
Vijay Venkatesh Kumar | 939daa0 | 2019-04-04 23:08:05 +0000 | [diff] [blame] | 110 | docker_config: |
| 111 | healthcheck: |
| 112 | endpoint: /ccsdk-app/health |
| 113 | interval: 15s |
| 114 | timeout: 1s |
Jack Lucas | 01b9869 | 2019-04-10 09:06:34 -0400 | [diff] [blame] | 115 | type: http |
Vijay Venkatesh Kumar | 939daa0 | 2019-04-04 23:08:05 +0000 | [diff] [blame] | 116 | relationships: |
| 117 | - type: cloudify.relationships.depends_on |
| 118 | target: pgaasdb |
| 119 | |