11 Commits

Author SHA1 Message Date
Yi Ming Yin
79b561353f Add mariadb database support to openstack-common
1. Add a new db.service_type as 'mariadb'
2. Reuse compatible code for mysql to support mariadb
3. Set mariadb as default database type for RHEL family

Change-Id: Ib537dc921b6e9d05cb79ef3e95dac558a7180816
blueprint: mariadb-support
2015-03-25 22:03:34 +08:00
Mark Vanderwiel
ea8dfaa401 Initial kilo updates
MetaData changes
- bump metadata versions to 11

Gemfile changes
- bump robocop to 0.29.1
- bump chef to 11.18.6  close to 12 but not quite (need infra changes for 12)
- bump berks to 3.2.1 to get fix for running twice (destination already exists)

Rubocop changes
- add .robucop_todo.yml for future cleanup
    - rubocop --auto-gen-config and add an inherit_from: .rubocop_todo.yml in your .rubocop.yml
- add .bundle/**/* to .rubocop.yml
- add .cookbooks/**/* to robocop.yml
- fixup berks-cookbooks/** with /**/*

Changelog changes
- delete Changelog.rb

Other codes changes
- change juno to kilo where appropriate
- cleanup any obvious old deprecated code

Change-Id: I146aa7f7ba4024115c1297103e176a72336fbe5d
Partial-Bug: #1426424
2015-03-04 08:30:52 -06:00
Mark Vanderwiel
89c99e47be MySql cookbook ver 6 changes
mysql cookbook is now provider driver, and no longer has default
attributes, like server_root_password.
For the password, now always using the Common password methods.
Therefore the ['openstack']['db']['root_user_use_databag'] attribute
was removed, it's now the default path.

For the other mysql attributes we used, these were moved into the
ops-database cookbook.  See that patch for more info.

This patch requires updates to the database and mysql-chef-gem cookbooks.

Change-Id: I817030cd7fb56cb025e1a8e21dc2b956b0ad7911
Implements: blueprint trusty-juno
2015-02-13 08:11:49 -06:00
Mark Vanderwiel
15eddd2a78 Cleanup CHEF-3694 cloning warnings
Use unique name for database resources.

Change-Id: Ibff252c7e35d532cd2ad133068387701ef9bb2c4
Partial-Bug: #1409921
2015-01-26 10:26:33 -06:00
Chen Zhiwei
f0e55b8742 Add database charset during create
When using MySQL, the database charset should be utf-8.

And the default charset is latin1, which will cause glance db sync
failed.

Closes-bug: #1356887
Change-Id: I50e299410de8068150d1c405994ecb96918fbc7d
2014-08-20 00:26:24 +00:00
Mark Vanderwiel
abd313ac8d Setting up repo for master Juno branch
* Update metadata versions
* Updates for icehouse specific attributes
* Removing Strainer file
* Updating Gems
  * chef (11.12.0)
  * chefspec (4.0.0)
  * rspec (3.0.0)
* Cleanup specs for 4.x

Change-Id: I9a495cdb90feaf7508a5b861557856dd19340272
Partial-Bug: 1349865
2014-07-29 11:09:11 -05:00
JJ Asghar
126d986884 Got 100% test coverage for common
This is my first pass at getting 100% unit test coverage.

Updated the tests to be rspec3 compaable also.
falsey? really FALSEY?

Updated chef to 11.12.0

Change-Id: I667f631d9c98474f7fe730315626702bae38f573
2014-07-14 17:01:10 -05:00
galstrom21
ffe0d05a0d Refactoring chefspec tests
Change-Id: I35dfca684039512e2a238466ff7df5f3fd34d956
Addresses: blueprint refactor-spec-files
Closes-Bug: 1282996
2014-02-26 20:05:04 -06:00
Andy McCrae
0b40a0686b Update spec files to be rubocop compliant
- Move to use a single .rubocop.yml file
- Adjust Strainerfile to use single .rubocop.yml file
- Ensure all spec files are rubocop compliant

Addresses: blueprint rubocop-for-common
Change-Id: I550c50c55edd4725782385de2c0f66bedff3004e
2014-01-24 15:02:19 +00:00
galstrom21
2201bd113f Updating to Havana
* updating ChefSpec -> 3.0.2
  * updating Foodcritic -> 3.0.3
  * updating Berkshelf -> 2.0.10

Change-Id: If02a149ed353227d49ffc9860b0b2fad7fb77955
2013-12-09 13:21:00 -06:00
John Dewey
4b56905563 Renamed the default library to database
Moved the default library to database, to better represent its duties.

Change-Id: Idf31549deced64d0b097a52d81a2184ad375a0b6
2013-06-07 20:43:33 -07:00