anchor.diff:  # Slow query logging:
   slow_query_log                  = 1
   slow_query_log_file             = /var/vcap/sys/log/mysql/mysql_slow_query.log
  -<% if p('cf_mysql.mysql.log_queries_not_using_indexes') -%>
  +<% if p('cf_mysql.mysql.log_queries_not_using_indexes') %>
   log_queries_not_using_indexes   = ON
  -<% end -%>
  +<% end %>
   
   # User statistics
  -<% if p('cf_mysql.mysql.userstat') -%>
  +<% if p('cf_mysql.mysql.userstat') %>
   userstat                        = 1
  -<% end -%>
  +<% end %>
   
   innodb_file_per_table           = ON
   innodb_file_format              = Barracuda
   innodb_log_file_size            = <%= p('cf_mysql.mysql.ib_log_file_size')%>MB
   innodb_support_xa               = OFF
  -<% if p('cf_mysql.mysql.innodb_large_prefix_enabled') -%>
  +<% if p('cf_mysql.mysql.innodb_large_prefix_enabled') %>
   innodb_large_prefix             = ON
  -<% else -%>
  +<% else %>
   innodb_large_prefix             = OFF
  -<% end -%>
  -<% if p('cf_mysql.mysql.innodb_strict_mode') -%>
  +<% end %>
  +<% if p('cf_mysql.mysql.innodb_strict_mode') %>
   innodb_strict_mode              = ON
  -<% else -%>
  +<% else %>
   innodb_strict_mode              = OFF
  -<% end -%>
  +<% end %>
   
   max_heap_table_size             = <%= p('cf_mysql.mysql.max_heap_table_size') %>
   tmp_table_size                  = <%= p('cf_mysql.mysql.tmp_table_size') %>
   
  -<% if_p('cf_mysql.mysql.server_audit_events') do |server_audit_events| -%>
  +<% if_p('cf_mysql.mysql.server_audit_events') do |server_audit_events| %>
   # Audit logging
   plugin-load                     = server_audit=server_audit.so
   server_audit_logging            = ON
  
positive.code: wsrep_max_ws_size               = <%= p('cf_mysql.mysql.wsrep_max_ws_size') %>
  wsrep_load_data_splitting       = ON
  wsrep_replicate_myisam          = OFF
  <% if p('cf_mysql.mysql.log_conflicts') -%>
  wsrep_log_conflicts             = ON
  <% end -%>
  wsrep_debug                     = <%= p('cf_mysql.mysql.wsrep_debug') %>
  
  # Regular MYSQL options:
  
negative.code: server_audit_file_path          = /var/vcap/store/mysql_audit_logs/mysql_server_audit.log
  server_audit_excl_users         = <%= excluded_audit_users.join(',') %>
  server_audit_file_rotations     = 0
  <% end %>
  
  # These are mandatory MySQL settings for MariaDB Galera to work
  binlog_format                   = ROW
  