Add local_bind flag to my.cf

This change enables the MySQL configuration file's network socket
bind to be changed from 0.0.0.0, to the local-ipv4 address via
the heat template.

    mysql:
      local_bind: true

The absence of the option will result in the bind returning to
the default of 0.0.0.0. This change was implemented this way
so the changes to the heat template could land later.

Change-Id: Iac1274cc52014f25887d696261b32146afc926dd
This commit is contained in:
Julia Kreger 2014-07-09 16:15:16 -04:00
parent 606e383f15
commit 53e23a96b0

View File

@ -9,7 +9,12 @@ user = mysql
default_storage_engine = InnoDB
socket = /var/run/mysqld/mysqld.sock
pid_file = /var/run/mysqld/mysqld.pid
{{#mysql.local_bind}}
bind-address = {{local-ipv4}}
{{/mysql.local_bind}}
{{^mysql.local_bind}}
bind-address = 0.0.0.0
{{/mysql.local_bind}}
# UTF8 #
character-set-client-handshake = FALSE