Change-Id: I4993f997ce3440317a286c8298ded0e96806d5bdmaster
slave or master: | slave or master: | ||||
ssl: | ssl: | ||||
enabled: True | enabled: True | ||||
ciphers: | |||||
DHE-RSA-AES128-SHA: | |||||
enabled: True | |||||
DHE-RSA-AES256-SHA: | |||||
enabled: True | |||||
EDH-RSA-DES-CBC3-SHA: | |||||
name: EDH-RSA-DES-CBC3-SHA | |||||
enabled: True | |||||
AES128-SHA:AES256-SHA: | |||||
name: AES128-SHA:AES256-SHA | |||||
enabled: True | |||||
DES-CBC3-SHA: | |||||
enabled: True | |||||
# path | # path | ||||
cert_file: /etc/mysql/ssl/cert.pem | cert_file: /etc/mysql/ssl/cert.pem | ||||
key_file: /etc/mysql/ssl/key.pem | key_file: /etc/mysql/ssl/key.pem |
{% if service.get('ssl', {}).get('enabled', False) %} | {% if service.get('ssl', {}).get('enabled', False) %} | ||||
wsrep_provider_options="socket.ssl=yes;socket.ssl_key={{ service.ssl.key_file }};socket.ssl_cert={{ service.ssl.cert_file }};socket.ssl_ca={{ service.ssl.ca_file }}" | wsrep_provider_options="socket.ssl=yes;socket.ssl_key={{ service.ssl.key_file }};socket.ssl_cert={{ service.ssl.cert_file }};socket.ssl_ca={{ service.ssl.ca_file }}" | ||||
{%- if service.ssl.ciphers is defined %} | |||||
{%- set _ciphers = [] %} | |||||
{%- for cipher_name, cipher in service.ssl.get('ciphers', {}).iteritems() %} | |||||
{%- if cipher.get('enabled', False) %} | |||||
{%- if cipher.name is defined %} | |||||
{%- do _ciphers.append(cipher.name) %} | |||||
{%- else %} | |||||
{%- do _ciphers.append(cipher_name) %} | |||||
{%- endif %} | |||||
{%- endif %} | |||||
{%- endfor %} | |||||
ssl_cipher={{ ':'.join(_ciphers) }} | |||||
{%- endif %} | |||||
ssl-ca={{ service.ssl.ca_file }} | ssl-ca={{ service.ssl.ca_file }} | ||||
ssl-cert={{ service.ssl.cert_file }} | ssl-cert={{ service.ssl.cert_file }} | ||||
ssl-key={{ service.ssl.key_file }} | ssl-key={{ service.ssl.key_file }} |
key_file: /etc/mysql/ssl/key.pem | key_file: /etc/mysql/ssl/key.pem | ||||
cert_file: /etc/mysql/ssl/cert.pem | cert_file: /etc/mysql/ssl/cert.pem | ||||
ca_file: /etc/mysql/ssl/ca.pem | ca_file: /etc/mysql/ssl/ca.pem | ||||
ciphers: | |||||
DHE-RSA-AES128-SHA: | |||||
enabled: True | |||||
DHE-RSA-AES256-SHA: | |||||
name: DHE-RSA-AES256-SHA | |||||
enabled: True | |||||
EDH-RSA-DES-CBC3-SHA: | |||||
name: EDH-RSA-DES-CBC3-SHA | |||||
enabled: True | |||||
AES128-SHA:AES256-SHA: | |||||
enabled: True | |||||
DES-CBC3-SHA: | |||||
enabled: True | |||||
clustercheck: | clustercheck: | ||||
enabled: True | enabled: True | ||||
user: clustercheck | user: clustercheck |