mysql: use a boolean for read-only

This commit is contained in:
Jérémy Lecour 2023-12-09 13:52:08 +01:00 committed by Jérémy Lecour
parent fb7218972f
commit ca5d9d5202
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY
2 changed files with 2 additions and 2 deletions

View file

@ -59,5 +59,5 @@ mysql_binlog_format: mixed
mysql_server_id: null
mysql_bind_address: null
mysql_repl_password: ''
mysql_read_only: 0
mysql_read_only: False

View file

@ -38,7 +38,7 @@ lower_case_table_names = {{ mysql_lower_case_table_names }}
{% if mysql_innodb_log_file_size %}
innodb_log_file_size = {{ mysql_innodb_log_file_size }}
{% endif %}
read_only = {{ mysql_read_only }}
read_only = {{ mysql_read_only | bool | ternary('1','0') }}
{% if mysql_performance_schema %}
performance_schema = ON
performance-schema-instrument='stage/%=ON'