Refactoring MON Charm to use Operator Framework
This refactoring work includes tests.
Note 1: old charm is in mon-k8s folder.
Note 2: relation-departed is currently not tested because there is
no function to remove a relation in the Testing Harness.
There is currently one issue open and the Charmcraft team
should provide feedback soon.
Change-Id: I57337260579975a1d07157d616acac5bcbef0577
Signed-off-by: sousaedu <eduardo.sousa@canonical.com>
diff --git a/installers/charm/mon/config.yaml b/installers/charm/mon/config.yaml
new file mode 100644
index 0000000..9480ea7
--- /dev/null
+++ b/installers/charm/mon/config.yaml
@@ -0,0 +1,62 @@
+# 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.
+#
+# For those usages not covered by the Apache License, Version 2.0 please
+# contact: legal@canonical.com
+#
+# To get in touch with the maintainers, please contact:
+# osm-charmers@lists.launchpad.net
+##
+
+options:
+ openstack_default_granularity:
+ description: Openstack default granularity
+ type: int
+ default: 300
+ global_request_timeout:
+ description: Global request timeout
+ type: int
+ default: 10
+ log_level:
+ description: Log level
+ type: string
+ default: INFO
+ database_commonkey:
+ description: Database common key
+ type: string
+ default: osm
+ collector_interval:
+ description: Collector interval
+ type: int
+ default: 30
+ evaluator_interval:
+ description: Evaluator interval
+ type: int
+ default: 30
+ vca_host:
+ type: string
+ description: "The VCA host."
+ default: "admin"
+ vca_user:
+ type: string
+ description: "The VCA user name."
+ default: "admin"
+ vca_password:
+ type: string
+ description: "The VCA user password."
+ default: "secret"
+ vca_cacert:
+ type: string
+ description: "The VCA cacert."
+ default: ""