---
<%
# cluster_ips may contain nil values due to lack of flexibility in spiff
cluster_ips = p('cf_mysql.mysql.cluster_ips').compact
%>

LogFileLocation: /var/vcap/sys/log/mysql/mariadb_ctrl.combined.log
PidFile: /var/vcap/sys/run/mariadb_ctl/mariadb_ctl.pid
Db:
  DaemonPath: /var/vcap/packages/mariadb_ctrl/bin/mysql_daemon.sh
  UpgradePath: /var/vcap/packages/mariadb/bin/mysql_upgrade
  User: <%= p('cf_mysql.mysql.admin_username')%>
  Password: <%= p('cf_mysql.mysql.admin_password')%>
  PreseededDatabases:
  <% p("cf_mysql.mysql.seeded_databases").each do |seed| %>
  - DBName: <%= seed["name"] %>
    User: <%= seed["username"]%>
    Password: <%= seed["password"] %>
  <% end %>
Upgrader:
  PackageVersionFile: /var/vcap/packages/mariadb/VERSION
  LastUpgradedVersionFile: /var/vcap/store/mysql/mysql_upgrade_info
Manager:
  StateFileLocation: /var/vcap/store/mysql/state.txt
  ClusterIps:
  <% cluster_ips.each do |ip| %>
  - <%= ip %>
  <% end %>
  MyIP: <%= spec.networks.send(p('network_name')).ip %>
  DatabaseStartupTimeout: <%= (p('cf_mysql.mysql.database_startup_timeout') * 0.8).round %>

---
<%
# cluster_ips may contain nil values due to lack of flexibility in spiff
cluster_ips = p('cf_mysql.mysql.cluster_ips').compact
%>

LogFileLocation: /var/vcap/sys/log/mysql/mariadb_ctrl.combined.log
PidFile: /var/vcap/sys/run/mariadb_ctl/mariadb_ctl.pid
Db:
  DaemonPath: /var/vcap/packages/mariadb_ctrl/bin/mysql_daemon.sh
  UpgradePath: /var/vcap/packages/mariadb/bin/mysql_upgrade
  User: <%= p('cf_mysql.mysql.admin_username')%>
  Password: <%= p('cf_mysql.mysql.admin_password')%>
  PreseededDatabases:
  <% p("cf_mysql.mysql.seeded_databases").each do |seed| %>
  - DBName: <%= seed["name"] %>
    User: <%= seed["username"]%>
    Password: <%= seed["password"] %>
  <% end %>
  ROUser: roadmin
Upgrader:
  PackageVersionFile: /var/vcap/packages/mariadb/VERSION
  LastUpgradedVersionFile: /var/vcap/store/mysql/mysql_upgrade_info
Manager:
  StateFileLocation: /var/vcap/store/mysql/state.txt
  ClusterIps:
  <% cluster_ips.each do |ip| %>
  - <%= ip %>
  <% end %>
  MyIP: <%= spec.networks.send(p('network_name')).ip %>
  DatabaseStartupTimeout: <%= (p('cf_mysql.mysql.database_startup_timeout') * 0.8).round %>

Add default read-only user name
Add default read-only user name

[#110369648]
