Extend K8S and RIC installation instructions
[it/dep.git] / ric-aux / 80-Auxiliary-Functions / helm / dashboard / templates / appconfig.yaml
1 ################################################################################
2 #   Copyright (c) 2019 AT&T Intellectual Property.                             #
3 #   Copyright (c) 2019 Nokia.                                                  #
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                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
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.                                             #
16 ################################################################################
17
18 # Defines multiple config maps for mounting as files; e.g., application.properties
19 # The keys listed below MUST be configured in each deployment;
20 # this list does not include all keys recognized by the app.
21 # The template directives in the URL prefix definitions use common
22 # K8S ingress values, but use Dashboard values if present.
23
24 apiVersion: v1
25 kind: ConfigMap
26 metadata:
27   name: {{ include "common.configmapname.dashboard" . }}-appconfig
28 data:
29   # one key per file
30   application.properties: |
31     server.port        = {{ include "common.serviceport.dashboard.container" . }}
32     userfile           = {{ .Values.dashboard.userfile }}
33     a1med.url.prefix   = {{ include "dashboard.prefix.a1mediator" . }}
34     a1med.url.suffix   = {{ .Values.dashboard.a1med.url.suffix   }}
35     anrxapp.url.prefix = {{ include "dashboard.prefix.anrxapp" . }}
36     anrxapp.url.suffix = {{ .Values.dashboard.anrxapp.url.suffix }}
37     appmgr.url.prefix  = {{ include "dashboard.prefix.appmgr" .  }}
38     appmgr.url.suffix  = {{ .Values.dashboard.appmgr.url.suffix  }}
39     caasingress.insecure = {{ .Values.dashboard.caasingress.insecure  }}
40     caasingress.aux.url.prefix  = {{ .Values.dashboard.caasingress.aux.url.prefix }}
41     caasingress.aux.url.suffix  = {{ .Values.dashboard.caasingress.aux.url.suffix }}
42     caasingress.plt.url.prefix  = {{ .Values.dashboard.caasingress.plt.url.prefix  }}
43     caasingress.plt.url.suffix  = {{ .Values.dashboard.caasingress.plt.url.suffix  }}
44     e2mgr.url.prefix   = {{ include "dashboard.prefix.e2mgr" .   }}
45     e2mgr.url.suffix   = {{ .Values.dashboard.e2mgr.url.suffix   }}
46     portalapi.security = {{ .Values.dashboard.portalapi.security }}
47     portalapi.appname  = {{ .Values.dashboard.portalapi.appname  }}
48     portalapi.username = {{ .Values.dashboard.portalapi.username }}
49     portalapi.password = {{ .Values.dashboard.portalapi.password }}
50     metrics.url.ac     = {{ .Values.dashboard.metrics.url.ac     }}
51     metrics.url.mc     = {{ .Values.dashboard.metrics.url.mc     }}
52
53   key.properties: |
54     cipher.enc.key     = {{ .Values.dashboard.cipher.enc.key }}
55
56   portal.properties: |
57     # fixed values
58     portal.api.impl.class = org.oransc.ric.portal.dashboard.portalapi.PortalRestCentralServiceImpl
59     role_access_centralized = remote
60     # variable values
61     ecomp_redirect_url = {{ .Values.dashboard.portalapi.ecomp_redirect_url }}
62     ecomp_rest_url     = {{ .Values.dashboard.portalapi.ecomp_rest_url }}
63     ueb_app_key        = {{ .Values.dashboard.portalapi.ueb_app_key }}
64
65   # Temp solution before Portal 2.6
66   users.json: |
67     [{"orgId":null,"managerId":null,"firstName":"First","middleInitial":null,"lastName":"Last","phone":null,"email":null,"hrid":null,"orgUserId":null,"orgCode":null,"orgManagerUserId":null,"jobTitle":null,"loginId":"demo","active":true,"roles":[{"id":1,"name":"System_Administrator","roleFunctions":null}]}]