support "custom-config" option

Bug #1737022 reported by james beedy
10
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.

Revision history for this message
james beedy (jamesbeedy) wrote :

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:
    type: string
    default:
    description: |
      Comma delineated custom config to make it to my.cnf
      E.x. `"ft_min_word_len=2,otherconfig=otherval"`

Revision history for this message
Mario Splivalo (mariosplivalo) wrote :

Wouldn't it be easier/cleaner to just create a new file and put it in /etc/mysql/conf.d/ directory, if extra configuration (outside of scope of the charm) is needed?

Revision history for this message
James Page (james-page) wrote :

Marking this as 'wishlist'; we have a similar 'expert use only' feature in other charms as these type of things allow users to shoot themselves in the foot quite spectacularly. I'd rather see proposal for features which can be expressed as specific configuration options or just good, sane best practices!

Changed in charm-percona-cluster:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-percona-cluster (master)

Change abandoned by james beedy (<email address hidden>) on branch: master
Review: https://review.openstack.org/526493
Reason: per comments, there is a better way for this configuration to be accomplished.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.