5 Commits

Author SHA1 Message Date
Xingchao Yu
aee08d0cbb Update allowed_hosts conditional statement
In the origin glance::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 glance::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
glance::db::mysql::host_access

Fix bug 1206444

Change-Id: Ic70aaaec493195c7277782abb87469f9809e5baa
2013-08-01 12:11:41 +08:00
Dan Bode
e6216be659 fix unit tests 2012-10-14 00:23:20 -07:00
John Chilton
a7dedf197a Allow override of mysql charset & small whitespace fixes and spec improvements to test this change. 2012-05-16 10:04:29 -05:00
John Chilton
cbd1a0d43f Change require => mysql::server to mysql::config so the mysql is fully configured before glance database is created. 2012-05-16 10:00:13 -05:00
John Chilton
14c2f4c9dd Adding initial spec for glance::db::mysql 2012-05-16 09:54:49 -05:00