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
This commit is contained in:
parent
f9d6db86ed
commit
a387c110a6
|
@ -74,5 +74,11 @@ outputs:
|
||||||
# internal_api_uri -> [IP]
|
# internal_api_uri -> [IP]
|
||||||
# internal_api_subnet - > IP/CIDR
|
# internal_api_subnet - > IP/CIDR
|
||||||
mysql_bind_host: {get_param: [ServiceNetMap, MysqlNetwork]}
|
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: |
|
step_config: |
|
||||||
include ::tripleo::profile::base::database::mysql
|
include ::tripleo::profile::base::database::mysql
|
||||||
|
|
|
@ -35,6 +35,13 @@ outputs:
|
||||||
value:
|
value:
|
||||||
service_name: mysql
|
service_name: mysql
|
||||||
config_settings:
|
config_settings:
|
||||||
get_attr: [MysqlBase, role_data, config_settings]
|
map_merge:
|
||||||
|
- get_attr: [MysqlBase, role_data, config_settings]
|
||||||
|
- tripleo::profile::pacemaker::database::mysql::bind_address:
|
||||||
|
str_replace:
|
||||||
|
template:
|
||||||
|
'"%{::fqdn_$NETWORK}"'
|
||||||
|
params:
|
||||||
|
$NETWORK: {get_param: [ServiceNetMap, MysqlNetwork]}
|
||||||
step_config: |
|
step_config: |
|
||||||
include ::tripleo::profile::pacemaker::database::mysql
|
include ::tripleo::profile::pacemaker::database::mysql
|
||||||
|
|
Loading…
Reference in New Issue