Allow overriding mysql_bundle::gcomm_cipher

There are cases where it is necessary to change the default cipher
used by galera (example: FIPS).
This commit adds a new parameter called MysqlGaleraSSLCipher to
easily override the default value 'AES128-SHA256' if required.

Change-Id: I7f47741d4b2a5a3473d24439689cc358bf7738f0
This commit is contained in:
Luca Miccini 2022-10-17 07:55:40 +02:00
parent 0043c70a47
commit 7c600ad224
2 changed files with 11 additions and 0 deletions

View File

@ -104,6 +104,10 @@ parameters:
hidden: true
description: When MysqlGaleraSSTMethod is set to mariabackup, the password
of the database user that executes the SST.
MysqlGaleraSSLCipher:
type: string
default: 'AES128-SHA256'
description: Symmetric cipher to use.
resources:
ContainersCommon:
@ -185,6 +189,7 @@ outputs:
# starting from pcs-0.10.14-6 enforces validations but this doesn't work when running
# outside the respective containers. we need to use --force to overcome this.
tripleo::profile::pacemaker::database::mysql_bundle::force_ocf: true
tripleo::profile::pacemaker::database::mysql_bundle::gcomm_cipher: {get_param: MysqlGaleraSSLCipher}
# BEGIN DOCKER SETTINGS #
puppet_config:
config_volume: mysql

View File

@ -0,0 +1,6 @@
---
features:
- |
Add support for overriding the default cipher used by galera.
This is useful for cases like FIPS where the default 'AES128-SHA256' is
not allowed.