aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/database
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2016-09-23 17:28:06 +0300
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2016-09-26 10:37:58 +0300
commita387c110a6ffbedb1a62f218be1ce2c0636b5b38 (patch)
treefd22e3bc10bb222eecfd997ea9d774aebf3adeb1 /puppet/services/database
parentf9d6db86edd89efe59fe0db9564ebfae05954788 (diff)
Bind MySQL address to hostname appropriate to its network
This now takes into use the mysql_bind_host key, to set an appropriate fqdn for mysql to bind to. Closes-Bug: #1627060 Change-Id: I50f4082ea968d93b240b6b5541d84f27afd6e2a3 Depends-On: I316acfd514aac63b84890e20283c4ca611ccde8b
Diffstat (limited to 'puppet/services/database')
-rw-r--r--puppet/services/database/mysql.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/puppet/services/database/mysql.yaml b/puppet/services/database/mysql.yaml
index b0eea481..094a7c9f 100644
--- a/puppet/services/database/mysql.yaml
+++ b/puppet/services/database/mysql.yaml
@@ -74,5 +74,11 @@ outputs:
# internal_api_uri -> [IP]
# internal_api_subnet - > IP/CIDR
mysql_bind_host: {get_param: [ServiceNetMap, MysqlNetwork]}
+ tripleo::profile::base::database::mysql::bind_address:
+ str_replace:
+ template:
+ '"%{::fqdn_$NETWORK}"'
+ params:
+ $NETWORK: {get_param: [ServiceNetMap, MysqlNetwork]}
step_config: |
include ::tripleo::profile::base::database::mysql