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 William Hirigoyen
parent bc03fd5bf0
commit 782b3264f3
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'