In the origin keystone::db::mysql, if the value of $allowed_hosts
contains or equals to $host, then puppet will complain duplicate
declaration error. This patch is aim to update the allowed_hosts
conditonal statement in keystone::db::mysql.
There are two cases to pass $allowed_hosts to $real_allowed_hosts:
- If $allowed_hosts is array,then remove $host from $allowed_hosts;
- elsif $allowed_hosts is string and not equivalent to $host;
At last, if $real_allowed_hosts is not undef, then run
keystone::db::mysql::host_access
Reviewed: https:/ /review. openstack. org/39256 github. com/stackforge/ puppet- keystone/ commit/ 49b248344f40d61 ae7467f1f35547e 39d66517ed
Committed: http://
Submitter: Jenkins
Branch: master
commit 49b248344f40d61 ae7467f1f35547e 39d66517ed
Author: Xingchao Yu <email address hidden>
Date: Tue Jul 30 18:03:22 2013 +0800
Update allowed_hosts conditional statement
In the origin keystone: :db::mysql, if the value of $allowed_hosts :db::mysql.
contains or equals to $host, then puppet will complain duplicate
declaration error. This patch is aim to update the allowed_hosts
conditonal statement in keystone:
There are two cases to pass $allowed_hosts to $real_allowed_ hosts:
- If $allowed_hosts is array,then remove $host from $allowed_hosts;
- elsif $allowed_hosts is string and not equivalent to $host;
At last, if $real_allowed_hosts is not undef, then run :db::mysql: :host_access
keystone:
Fix bug 1206444
Change-Id: I8701aea9344a91 51ce3d7ac8fa579 2895a5aac6c