support "custom-config" option
Bug #1737022 reported by
james beedy
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Percona Cluster Charm |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Users have expressed a need to add user-custom config to my.cnf. It would be nice if this charm allowed for this (e.g. addition of a "custom-config" charm option.
To post a comment you must log in.
As a workaround, I forked this charm and added the following to get the custom-config:
templates/my.cnf
{% if custom_config %}
{% for item in custom_config %}
{{item}}
{% endfor %}
{% endif %}
hooks/percona_ hooks.py: render_ config( )
if config( 'custom- config' ):
context[ 'custom_ config' ] = config( 'custom- config' ).split( ",")
config.yaml
custom-config: word_len= 2,otherconfig= otherval" `
type: string
default:
description: |
Comma delineated custom config to make it to my.cnf
E.x. `"ft_min_