Add OSM charms
[osm/devops.git] / installers / charm / nbi-k8s / reactive / spec_template.yaml
1 # Copyright 2020 Canonical Ltd.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #     Unless required by applicable law or agreed to in writing, software
10 #     distributed under the License is distributed on an "AS IS" BASIS,
11 #     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #     See the License for the specific language governing permissions and
13 #     limitations under the License.
14 version: 2
15 containers:
16   - name: %(name)s
17     image: %(docker_image)s
18     ports:
19     - containerPort: %(advertised-port)s
20       protocol: TCP
21     config:
22       ALLOW_ANONYMOUS_LOGIN: 'yes'
23
24       OSMNBI_MESSAGE_HOST: %(kafka_host)s
25       OSMNBI_MESSAGE_DRIVER: kafka
26       OSMNBI_MESSAGE_PORT: %(kafka_port)s
27
28       OSMNBI_DATABASE_DRIVER: mongo
29       OSMNBI_DATABASE_URI: %(mongo_uri)s
30       OSMNBI_DATABASE_COMMONKEY: %(DATABASE_COMMONKEY)s
31       
32       OSMNBI_STORAGE_DRIVER: mongo
33       OSMNBI_STORAGE_PATH: /app/storage
34       OSMNBI_STORAGE_COLLECTION: files
35       OSMNBI_STORAGE_URI: %(mongo_uri)s
36
37       OSMNBI_STATIC_DIR: /app/osm_nbi/html_public
38       
39       OSMNBI_PROMETHEUS_HOST: %(prometheus_host)s
40       OSMNBI_PROMETHEUS_PORT: %(prometheus_port)s
41       OSMNBI_LOG_LEVEL: %(log_level)s