Make mysql bind-address configurable
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Fri, 23 Sep 2016 14:26:45 +0000 (17:26 +0300)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Sat, 24 Sep 2016 08:51:45 +0000 (11:51 +0300)
commit9158a09a09454a317e00176804a0be889ce70830
tree000495b943edd9949e586dbb3b00798b754e6d65
parent6a9429eeda549f85fdb7e3748188046d702852fb
Make mysql bind-address configurable

It used to be hardcoded that the bind-address was always coming from
the $::hostname fact. This is wrong, as it disregards where we have
configured the mysql address. This commit actually makes it
configurable, so we'll be able to set it via hieradata.

On the other hand, we use the hiera key that we already set
'mysql_bind_host' as a default; if, for some reason, that's
unavailable then we fall back to $::hostname.

Related-Bug: #1627060
Change-Id: I316acfd514aac63b84890e20283c4ca611ccde8b
manifests/profile/base/database/mysql.pp
manifests/profile/pacemaker/database/mysql.pp