Commit Graph

12 Commits

Author SHA1 Message Date
Emilien Macchi
2f614cf9fd MySQL: change default MySQL collate to utf8_general_ci
Install & configure MySQL database by using utf8_general_ci collation
which is the way documented in OpenStack [1] and already the default
in puppetlabs-mysql [2].

[1] http://goo.gl/GA5gyZ
[2] https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/db.pp#L7

Change-Id: If85731786a061aed9cb44f016edc67f32c3db1a5
Closes-bug: #1446375
2015-04-21 18:53:13 -04:00
Sebastien Badia
dbe297b056 spec: updates for rspec-puppet 2.x and rspec 3.x
This patch aim to update our specs test in order to work with the rspec-puppet release
2.0.0, in the mean time, we update rspec syntax in order to be prepared
for rspec 3.x move.

In details:

  * Use shared_examples "a Puppet::Error" for puppet::error tests
  * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
  * Fix spec tests for rspec-puppet 2.0.0
  * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
  * Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper)

Change-Id: Ibd0333dc3c0959e846edfbad51fb48e8dfb8fbe9
Card: https://trello.com/c/eHXc1Ryd/4-investigate-the-necessary-change-to-be-rspec-puppet-2-0-0-compliant
2015-02-25 05:37:44 +01:00
Colleen Murphy
dbcb82fa36 Migrate mysql backend to use openstacklib::db::mysql
Implements: blueprint commmon-openstack-database-resource
Change-Id: I03bd33d7c78ea69702650688c28e9d0b7cac2911
2014-08-14 08:45:41 -07:00
Soren Hansen
c3a25eac47 Use 2.2 as the default mysql_module
Change-Id: I5ec545b62ef8ac5371ca567a8a00f5ba535efceb
2014-07-16 18:45:39 +05:30
Ivan Chavero
dba437e8af Change mysql default charset to utf8
Changed the default charset to uf8 and the
collation to utf8_unicode_ci.

Change-Id: Iac22a6f66e889157bd1f327da50e0186e04651dc
2014-03-31 22:09:30 -07:00
Michael Chapman
4aa86af2fc Add support for puppetlabs-mysql 2.2
Puppetlabs-mysql has been rewritten to be much
cleaner. This patch adds a new parameter for the
glance mysql class allowing users to use the new
version. Previous behavior will continue as normal
when using the old version (0.9)

Change-Id: Icdc787e325f3e86572f6930f1ab8c3d5291e67c9
2014-03-22 02:12:28 +11:00
Doug Schaapveld
2208119f8d Using contain_class instead of include_class
Per rspec-puppet-1.0.1 warning:

DEPRECATION: include_class is deprecated. Use contain_class instead.
Called from .../vendor/gems/rspec-puppet-1.0.1/lib/rspec-puppet/
matchers/include_class.rb:7

Change-Id: I3cf9ac1ff9549b5bb1182010d42e3beee1efa4cc
2013-12-17 21:59:44 -06:00
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