Add OSM charms
[osm/devops.git] / installers / charm / bundles / osm / bundle.yaml
diff --git a/installers/charm/bundles/osm/bundle.yaml b/installers/charm/bundles/osm/bundle.yaml
new file mode 100644 (file)
index 0000000..fc3dbcb
--- /dev/null
@@ -0,0 +1,230 @@
+# Copyright 2020 Canonical Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+#     Unless required by applicable law or agreed to in writing, software
+#     distributed under the License is distributed on an "AS IS" BASIS,
+#     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#     See the License for the specific language governing permissions and
+#     limitations under the License.
+description: Single instance OSM bundle
+bundle: kubernetes
+applications:
+  zookeeper-k8s:
+    charm: 'cs:~charmed-osm/zookeeper-k8s'
+    channel: 'stable'
+    scale: 1
+    series: kubernetes
+    storage:
+      database: 100M
+    options:
+      # client-port: 2181
+      server-port: 2888
+      leader-election-port: 3888
+      zookeeper-units: 1
+    annotations:
+      gui-x: 0
+      gui-y: 1100
+  mariadb-k8s:
+    charm: 'cs:~charmed-osm/mariadb-k8s'
+    channel: 'stable'
+    scale: 1
+    series: kubernetes
+    storage:
+      database: 50M
+    options:
+      password: manopw
+      root_password: osm4u
+      user: mano
+      database: database
+      mysql_port: "3306"
+      query-cache-type: "OFF"
+      query-cache-size: 0
+      ha-mode: false
+    annotations:
+      gui-x: -500
+      gui-y: -400
+  kafka-k8s:
+    charm: 'cs:~charmed-osm/kafka-k8s'
+    channel: 'stable'
+    scale: 1
+    series: kubernetes
+    storage:
+      database: 100M
+    options:
+      advertised-hostname: "kafka-k8s"
+      advertised-port: 9092
+      kafka-units: 1
+      zookeeper-units: 1
+      zookeeper-service-name: zookeeper-k8s-endpoints
+    annotations:
+      gui-x: 0
+      gui-y: 600
+  mongodb-k8s:
+    charm: 'cs:~charmed-osm/mongodb-k8s'
+    channel: 'stable'
+    scale: 1
+    series: kubernetes
+    storage:
+      database: 50M
+    options:
+      advertised-port: 27017
+      replica-set: rs0
+      namespace: osm
+      service-name: mongodb-k8s-endpoints
+      cluster-domain: cluster.local
+      enable-sidecar: false
+    annotations:
+      gui-x: 0
+      gui-y: 100
+  nbi-k8s:
+    charm: '%(prefix)s/nbi-k8s%(suffix)s'
+    channel: '%(channel)s'
+    scale: 1
+    series: kubernetes
+    storage:
+      packages: 50M
+    options:
+      log_level: "INFO"
+      DATABASE_COMMONKEY: osm
+    annotations:
+      gui-x: 0
+      gui-y: -400
+  ro-k8s:
+    charm: '%(prefix)s/ro-k8s%(suffix)s'
+    channel: '%(channel)s'
+    scale: 1
+    series: kubernetes
+    storage:
+      log: 50M
+    options:
+      vim_database: 'mano_vim_db'
+      ro_database: 'mano_db'
+      OPENMANO_TENANT: 'osm'
+    annotations:
+      gui-x: -500
+      gui-y: 600
+  ui-k8s:
+    charm: '%(prefix)s/ui-k8s%(suffix)s'
+    channel: '%(channel)s'
+    scale: 1
+    series: kubernetes
+    options:
+      mysql_database: lwui
+    annotations:
+      gui-x: 500
+      gui-y: -400
+  lcm-k8s:
+    charm: '%(prefix)s/lcm-k8s%(suffix)s'
+    channel: '%(channel)s'
+    scale: 1
+    series: kubernetes
+    storage:
+      packages: 50M
+    options:
+      vca_host: vca
+      vca_port: 17070
+      vca_user: admin
+      vca_password: secret
+      vca_pubkey: pubkey
+      vca_cacert: cacert
+      vca_apiproxy: apiproxy
+      use_external_vca: false
+      DATABASE_COMMONKEY: osm
+    annotations:
+      gui-x: -500
+      gui-y: 100
+  mon-k8s:
+    charm: '%(prefix)s/mon-k8s%(suffix)s'
+    channel: '%(channel)s'
+    scale: 1
+    series: kubernetes
+    storage:
+      database: 100M
+    options:
+      OSMMON_OPENSTACK_DEFAULT_GRANULARITY: 300
+      OSMMON_GLOBAL_REQUEST_TIMEOUT: 10
+      OSMMON_GLOBAL_LOGLEVEL: INFO
+      OSMMON_DATABASE_COMMONKEY: osm
+      OSMMON_COLLECTOR_INTERVAL: 30
+      OSMMON_EVALUATOR_INTERVAL: 30
+      vca_host: vca
+      vca_user: admin
+      vca_password: secret
+      vca_cacert: cacert
+      use_external_vca: false
+    annotations:
+      gui-x: 500
+      gui-y: 100
+  pol-k8s:
+    charm: '%(prefix)s/pol-k8s%(suffix)s'
+    channel: '%(channel)s'
+    scale: 1
+    series: kubernetes
+    storage:
+      database: 100M
+    options:
+      log_level: INFO
+    annotations:
+      gui-x: -500
+      gui-y: 1100
+  prometheus-k8s:
+    charm: 'cs:~charmed-osm/prometheus-k8s'
+    channel: 'stable'
+    scale: 1
+    series: kubernetes
+    storage:
+      database: 50M
+    options:
+      advertised-port: 9090
+      web-subpath: /
+      default-target: "mon-k8s:8000"
+    annotations:
+      gui-x: 500
+      gui-y: 600
+  grafana-k8s:
+    charm: 'cs:~charmed-osm/grafana-k8s'
+    channel: 'stable'
+    scale: 1
+    series: kubernetes
+    annotations:
+      gui-x: 500
+      gui-y: 1100
+
+relations:
+  - - 'kafka-k8s:zookeeper'
+    - 'zookeeper-k8s:zookeeper'
+  - - 'ro-k8s:mysql'
+    - 'mariadb-k8s:mysql'
+  - - 'nbi-k8s:mongo'
+    - 'mongodb-k8s:mongo'
+  - - 'nbi-k8s:kafka'
+    - 'kafka-k8s:kafka'
+  - - 'lcm-k8s:kafka'
+    - 'kafka-k8s:kafka'
+  - - 'lcm-k8s:mongo'
+    - 'mongodb-k8s:mongo'
+  - - 'mon-k8s:kafka'
+    - 'kafka-k8s:kafka'
+  - - 'mon-k8s:mongo'
+    - 'mongodb-k8s:mongo'
+  - - 'pol-k8s:kafka'
+    - 'kafka-k8s:kafka'
+  - - 'pol-k8s:mongo'
+    - 'mongodb-k8s:mongo'
+  - - 'lcm-k8s:ro'
+    - 'ro-k8s:ro'
+  - - 'prometheus-k8s:prometheus'
+    - 'mon-k8s:prometheus'
+  - - 'grafana-k8s:prometheus'
+    - 'prometheus-k8s:prometheus'
+  - - 'ui-k8s:mysql'
+    - 'mariadb-k8s:mysql'
+  - - 'ui-k8s:nbi'
+    - 'nbi-k8s:nbi'
+  - - 'prometheus-k8s:prometheus'
+    - 'nbi-k8s:prometheus'