blob: 8a606a4cb31d779205139995707b252cec2b7b34 [file] [log] [blame]
sousaedu958cf652021-01-20 16:14:58 +00001# Copyright 2021 Canonical Ltd.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# 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, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14#
15# For those usages not covered by the Apache License, Version 2.0 please
16# contact: legal@canonical.com
17#
18# To get in touch with the maintainers, please contact:
19# osm-charmers@lists.launchpad.net
20##
21
22options:
23 user:
24 type: string
25 description: 'The database user name.'
26 default: 'mysql'
27 password:
28 type: string
29 description: 'The database user password.'
30 default: 'password'
31 database:
32 type: string
33 description: 'The database name.'
34 default: 'database'
35 root_password:
36 type: string
37 description: 'The database root password.'
38 default: 'root'
39 mysql_port:
40 type: string
41 description: 'The mysql port'
42 default: '3306'
43 query-cache-type:
44 default: "OFF"
45 type: string
46 description: "Query cache is usually a good idea, \
47 but can hurt concurrency. \
48 Valid values are \"OFF\", \"ON\", or \"DEMAND\"."
49 query-cache-size:
50 default: !!int "0"
51 type: int
52 description: "Override the computed version from dataset-size. \
53 Still works if query-cache-type is \"OFF\" since sessions \
54 can override the cache type setting on their own."
55 ha-mode:
56 type: boolean
57 description: Indicates if the charm should have the capabilities to scale
58 default: false
59 image:
60 type: string
61 description: OCI image
62 default: rocks.canonical.com:443/mariadb/server:10.3
63 ha-image:
64 type: string
65 description: OCI image
66 default: rocks.canonical.com:443/canonicalosm/galera-mysql:latest