Commit Graph

53 Commits

Author SHA1 Message Date
Ghanshyam Mann 9460c5eb70 Retire openstack-chef: remove repo content
OpenStack-chef project is retiring
- https://review.opendev.org/c/openstack/governance/+/905279

this commit remove the content of this project repo

Depends-On: https://review.opendev.org/c/openstack/project-config/+/909134
Change-Id: I4892478f3e2397820e354ff15859fb992b3512e4
2024-02-17 20:49:57 -08:00
Lance Albertson ee28b08a57 Chef 17 support
- Require Chef >= 16.0
- Update to latest upstream mariadb cookbook
- Update copyright years

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-common/+/813952
Change-Id: I4b0417acb75f10dd9a1c0a22fadcd1d849f045b9
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 09:01:42 -07:00
Lance Albertson 38d0a27c66 Updates for Train
Changed:
- Update release to train
- Update to mariadb ~> 4.0

Fixed:
- Migrate to using Chef::Log.warn instead of the log resource to fix
  idempotency issues.
- Cookstyle

Removed:
- Unused .rubocop.yml

Depends-On: https://review.opendev.org/731851
Change-Id: Ia705cf4fb00098ba5d34f22268c0e409b82580a0
2020-05-29 17:13:44 -07:00
Lance Albertson c72c025288 Remove support for mysql
Upstream distributions have settled on using MariaDB instead of MySQL
and it's becoming more and more difficult to maintain on our end. As
such, we're removing support from this cookbook for MySQL and only leave
MariaDB as the supported platform.

Change-Id: I104de18ecab5ba64f08fd39314e565ab0483c558
2020-03-30 13:50:33 -07:00
Lance Albertson 93e7380abf Stein fixes
- Cookstyle fixes
- Update documentation
- Add myself as an author and add OSU for Copyright
- Update delivery configuration to exclude integration cookbooks

Depends-On: https://review.opendev.org/701027
Depends-On: https://review.opendev.org/706101
Change-Id: Ib2ccf949d5f5bced0f6efd32b09780469316b831
2020-03-19 10:56:43 -07:00
Lance Albertson 8747a1cf96 Update to latest mariadb cookbook
This updates us to a new resource driven mariadb cookbook which
simplifies how we manage mysql. Other changes:

- Update to using MariaDB 10.3 instead of 10.1 as we need this for Stein
- Update attributes so they work better with the
  mariadb_server_configuration resource
- Remove use of the mysql2_chef_gem cookbook as it's no longer needed
  and causes issues with newer versions of MariaDB and MySQL.
- Remove use of the openstack.cnf template since we can add all
  configuration using the mariadb_server_configuration resource
- Remove RHEL mariadb-server ChefSpec as it's not needed
- Update openstack-db recipe to use the openstack_database resource
  instead of the openstack_common_database resource which was renamed

Depends-On: https://review.opendev.org/710351
Change-Id: Ia5b401cafcdf57aa84e090c745bd3e517c7251bf
2020-02-28 11:45:42 -08:00
Lance Albertson db48ab1fdc Updates for rocky
- Replace git.openstack.org with opendev.org
- Update some documentation
- Move README.md to README.rst for better rendering
- Drop obsolete bootstrap.sh script
- Adopt default mysql dir from updated cookbook

Change-Id: I94a066975fe00a29ff6731021767b1eda294ba44
2019-12-06 10:38:09 +00:00
ZhijunWei 3b3bdaa148 Change openstack-dev to openstack-discuss
Depends-On: I8efc34c220fec59826bbea51e3ebf3fbc0e5b530
Change-Id: Ic10822af372abdda7944496ad4f026b55f4d8d63
2018-12-21 05:57:46 +00:00
Samuel Cassiba e302e88e25 starting rocky development patch
Change-Id: If050a2d628edce724031bb19deb45f196ceb4a66
2018-08-03 06:28:33 -07:00
Samuel Cassiba f5e2e58c4e starting queens development patch and use git.openstack.org
* use git.openstack.org instead of github for berks dependency
resolution

Change-Id: I0b73ea2e711d996f886000f584d350c581571610
2018-03-06 09:01:53 -08:00
Jens Harbott 3731993f6a Add receipes for mariadb cluster deployment
After removal of the percona cluster receipes, add support for deploying
a galera-based mariadb cluster instead.

Change-Id: I7e4d0fc804be242302d2e7b7202159d4b7ba8c97
2018-01-12 10:24:20 +00:00
Samuel Cassiba 45a1623cb2 ops-database refactor for Pike and Chef 13
- implemented foodcritic and cookstyle corrections
- deprecated node.foo.bar method access for node['foo']['bar'] bracket syntax
- removed deprecated postgresql support
- removed percona-cluster as the Percona cookbook has not been touched since 2015
- switched default rdbms to mariadb[0]

This change was largely born out of a discussion in #sous-chefs on the Chef
Community Slack. The notion of using the vendor-provided package is preferred
in the Chef Community versus the distro version if possible, due to
inconsistencies in outcome. As a result, this cookbook focuses on MariaDB, and
specifically from mariadb.org.

[0]: https://docs.openstack.org/install-guide/environment-sql-database.html

Implements blueprint modern-chef

Change-Id: I7ee0f5eae4e79e5c70ee8de4a0094a7c34fdd18f
2018-01-11 10:36:09 -08:00
Jan Klare 7d5c0216b1
starting pike development patch
Change-Id: I5955ae670fd4a87a7800203b7a9ba942bd7cc8eb
2017-08-17 14:19:40 +02:00
Samuel Cassiba fe6a3d552c Style and lint fixes for chefdk, deprecated Gemfile
- Style and lint fixes for newer chefdk
- Removed ancient Gemfile
- Rewrote metadata.rb for readability
- Adapted mariadb recipe for newer mysql2_chef_gem

Change-Id: I3112615cec3dd80c63779d164893b4171773856c
Depends-On: I950605f384405b55737af77bc4224f1e18fee8e1
2017-08-02 13:26:22 -04:00
Jan Klare e3e7d54dad starting ocata development patch
Change-Id: I6e98a1403732852e8dbf3ccfa436723ef696eeb5
2017-02-23 17:06:55 +01:00
Jan Klare c07b0f75fa update cookbook dependencies for next release
Depends-On: Ib256c315d5439beb8d4ec83c5cc7d7c9b182378a
Change-Id: I50df0befac140660d58eccb939d33a83edbb441c
2016-12-07 11:24:03 +01:00
Samuel Cassiba eb3c4081f1 Incremented MySQL to 5.7 for Ubuntu
- mysql default version is 5.7 on Ubuntu 16.04
- included mysql devel headers for mysql2
- incremented mysql cookbook to 8.0
- incremented database cookbook to 6.0
- pinned mysql2 gem at 0.4.4

Depends-On: I57c8729e8732161ac34caa85259de8264e99c56d
Implements blueprint newton-xenial

Change-Id: I8ee882d5b154ec0d319e6c4186ebf9f8ae68f269
2016-10-18 23:19:32 -07:00
Samuel Cassiba 3a0d36aa5a Increment mysql cookbook version
- Bump mysql to 7.2
- Bump mysql2_chef_gem to 1.1.0
- Work around https://github.com/chef/chef-dk/issues/966
- fixes minor bug in postgres-server_spec and server_spec

Change-Id: I6e906c5fad0360a7d9718fc5d5cda2983c3b768e
Depends-On: I07ad79a93642d0f0c934a864fcb9bcd7b764e35f
Implements: blueprint newton-xenial
2016-09-27 19:53:51 +00:00
Samuel Cassiba 57042a006e Style and lint fixes to support newer ChefDK
Change-Id: I7b8521a85bace612911f967fe4e35269b7b47034
Depends-On: I6ce4587caa3ae68ddbd3ef1a521aaf46f4840b2c
2016-07-01 18:10:31 -07:00
Jan Klare 88b1e879f2 initial commit for the newton development cycle
Change-Id: Ifa685eb0cc8698ceab0da0c434137f3477623b4e
2016-05-31 10:42:15 +02:00
Jan Klare 856c3a24ab add percona-cluster recipes
- add recipes and specs to deploy percona-cluster as db backend

Depends-On: Iae7e302973805af3cb44be1b29d0e61e76eb0aa0
Implements Blueprint: galera-and-percona-support
Change-Id: Ie69e71dce8fa22ef5edc17ed094840fcfb9d4c82
2016-02-24 14:36:01 +00:00
Jan Klare 69ae909123 adaptions to work with refactored cookbooks
* adapted mariadb, mysql and postgresql server recipes to work with net endpoint
  logic
* removed suse support

Depends-On: I0547182085eed91d05384fdd7734408a839a9a2c
Impements: blueprint cookbook-refactoring
Change-Id: Ia7fd927f42f4a1e484e8f2d34c52b1dc6d0ce6dd
2016-02-08 10:31:51 +01:00
Mark Vanderwiel dc8e14f03a Initial Liberty Changes
Metadata changes
- Updated maintainer email
- Updated the version

Change-Id: Id490e1eb2702be38fb4ba8bc6a8ea6bdc7b1c94c
2015-08-30 08:00:23 -05:00
Samuel Cassiba f0112a3542 Bump mariadb to 0.3.1
Change-Id: I12bad42799f0dd632d8a8ad344561a8a671f734a
2015-08-03 09:25:02 -07:00
Mark Vanderwiel 41f5b3c9a9 Cleanup minor rubocop offenses
Cleaned up all the minor rubocop issues, the ones left relate to
complex logic and what I think is a bug in rubocop for nested
vs compact modules/class definitions.

Change-Id: I80b0e9671a787e208622b7eed82494f08e288438
2015-06-03 09:10:34 -05:00
Yi Ming Yin 9a864936c4 Add mariadb database configuration support
1. Add 2 new recipes to configure mariadb client and server
2. Partially reuse existing code for mysql support
3. Add delete empty user and users with empty password workaround.
Current mysql cookbook can do this, but mariadb cookbook doesn't.

blueprint: mariadb-support
Change-Id: I034cedb07f8bf11f271fc351f9a7ad534067b95a
2015-03-27 14:28:35 +08:00
Mark Vanderwiel d1ed020187 Initial kilo updates
Change-Id: I345ce59e0449a146c8bc83db864e6585633b54dc
Partial-Bug: #1426424
2015-02-27 14:25:44 -06:00
Mark Vanderwiel 820e502251 Switch back to pessimistic version constraint
Change-Id: I30a27af5c80fbb01edaff0215e5aa56fd76f0aba
Partial-Bug: #1425192
2015-02-24 13:26:17 -06:00
Mark Vanderwiel 827b8b24d9 Update postgresql to handle openssl cookbook issue
* this will require openssl > 4.0.0 in repo

Change-Id: I14b1b5a9e80e0e613a183f0c94322a605851da3a
2015-02-23 12:24:39 -06:00
Mark Vanderwiel baa3b76fcb MySql cookbook ver 6 changes
mysql cookbook is now provider driven, and no longer has default
attributes, like server_root_password.
For the password, now always using the Common password methods.

For the other mysql attributes we used, these were moved into the
attributes mysql.rb file.

The attribute name space was changed from
[mysql][**attr**]  and [mysql][tunable][**attr**]  to
[openstack][mysql][**attr**]

This patch requires updates to the database and mysql-chef-gem cookbooks.mysql cookbook ver 6 changes

Change-Id: I05d27de80de0371503c5fa71591b4600bbeb2ca9
Implements: blueprint trusty-juno
2015-02-13 08:10:31 -06:00
Mark Vanderwiel 67f1674bc5 Missed bumping Common version
Change-Id: I2d706025e62c6ee4e5cf19af92fb590d780029a6
Related-Bug: #1412919
2015-02-09 11:51:05 -06:00
Mark Vanderwiel 5af34f8e29 Cleanup cookbook contact info
* Consistent email across cookbooks
* Add Contributor.md to help out new folks
* Fix broken link in Testing.md
* Readme tweaks

Change-Id: I31a202ed1dc5c8a6ddea25f4ff3aca50e795798b
Partial-Bug: #1342735
2014-10-16 12:30:28 -05:00
Mark Vanderwiel 3f7bcb9421 Fix mysql cookbook version for previous password patch
The previous patch is using a new method only available in
mysql cookbook version 5.4.  Bump metadata to that.

Change-Id: I988fbab91b7ac2251276ffe837e5b918d2f7371a
Partial-Bug: #1373523
2014-09-24 12:12:23 -05:00
Mark Vanderwiel 9b1fba5120 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: I077b2e9e9906f7a52e8304d70df1075fcb99bbf9
Partial-Bug: 1349865
2014-07-29 15:38:00 -05:00
bradkwadsworth 66b73078b0 Update database and mysql dependency.
Now depends on mysql ~> 5.3 and database ~> 2.2.
The mysql-server recipe now uses the mysql cookbook
wrapper method.

Blueprint: move-to-mysql-v5
Change-Id: I74111ead1555c46d32c3e096c380fec27b3ef593
2014-07-15 15:15:49 -05:00
Ionuț Arțăriși 74b71a35a9 use new python_packages attributes from -common
*_python_packages attributes are being moved to -common in order to
remove the duplication from all the cookbooks which are using them

Change-Id: I848690a84f53b3c6c5e54f4b19f56d5494890f1b
Implements: blueprint move-python-db-client-attrs-to-common
2014-07-02 16:05:00 +02:00
Mark Vanderwiel 51b2005b08 fix metadata database depends
database pulls in mysql, new mysql v5 is not backward compatible.
Need to pull in mysql depends first at v4, then pull in database.

Change-Id: Ib27c9c77e7eaf25b11a3f4fb7871a6b3a8acba62
Related-Bug: #1300524
2014-04-11 11:34:31 -05:00
Mark Vanderwiel 15e2f21455 Icehouse branch version updates
Change-Id: Iab2f90e10a7115cc69ab129de2da734711d4a72e
2014-03-27 11:37:24 -05:00
Darren Birkett 9e9080d67f Bump mysql cookbook version in metadata to 4.1.1
Change-Id: I2ebd6516f8b7150e0854458d491c5ea762a3a5fa
Fixes: bug 1294114
2014-03-19 09:03:23 +00:00
Chen Zhiwei 786129543f Rename openstack-metering to openstack-telemetry
update cookbook attribute name, change metering to telemetry

Change-Id: I76b1a398a600ba824e379ddbe14309dd3940d0db
2014-03-13 03:45:05 -04:00
galstrom21 377802cfff Cleaning up berks/metadata dependencies
Change-Id: I5a24fbbe8c5bb33646fcffd83971ce4fe982a14c
2014-02-17 12:08:25 +00:00
Andy McCrae 84c491f236 Update spec files to be rubocop compliant
- Update .rubocop.yml to include spec/**
- Update metadata.rb to be rubocop compliant
- Update spec files to be rubocop compliant

Change-Id: If059f01f46102282ffeed9323f6e06fa78f8597c
Addresses: blueprint rubocop-for-ops-database
2014-01-21 16:52:29 +00:00
hanzhf 6ef16628e5 Add supoort for heat
Pending on review: https://review.openstack.org/#/c/59292/
1) Add dependency for openstack orchestration cookbook
2) Create heat database
3) Add testcase for heat database creation
Implements: blueprint heat-support

Change-Id: I99caa16f62945b8063f142d3897db8509248a0e8
2014-01-15 11:12:49 +08:00
Matt Ray 762889aa86 Filling out initial rubocop support for metadata.rb and the Gemfile.
Removing tailor, cleaning up metadata and Gemfile and adding TESTING.md

Addresses: blueprint rubocop-for-ops-database
Change-Id: Ia2e02864b3c157b44cf0cf483801c6bb19f83054
2014-01-09 17:35:10 -06:00
Ionuț Arțăriși 95a1893e54 upgrade to Havana
Update:
 - chefspec ~> 3.0.2
 - foodcritic ~> 3.0.3
 - berkshelf ~> 2.0.10

Change-Id: Ic415c2c932f7c80eacdba56acb10a9e423394b27
2013-12-12 09:37:05 +01:00
Hyunsun Moon cf8e48039b Replace ceilometer reference from openstack-compute to openstack-metering
Fix errors due to removed reference of openstack-compute ceilometer.
* add openstack-metering to metadata.rb
* add openstack-metering to Berksfile
* replace attr name from compute to metering

Change-Id: I2047fe226840d136e99bcc49970043476ffb2dbd
2013-08-08 19:43:49 +09:00
paulczar 28619c1357 update to use openstack-common 0.4.0
Change-Id: Id080bf2e3f1b3171d87910c2d83c242b76a24733
2013-07-28 14:00:54 -05:00
Ionuț Arțăriși 24a1b1107d add support for PostgreSQL
Change-Id: Id6b6997b588e2647c33746bfc56e211c3352ecf3
2013-07-10 16:57:35 +02:00
Ionuț Arțăriși 374579d4ff add SUSE platform support
Change-Id: Icef223be7ef1deaa9dd5f04616a8ee5497925c67
2013-07-08 15:50:23 +02:00
John Dewey 8e76788b4c Moved database table, user, grants creation
This cookbook should handle the creation of tables, users, grants
for use with OpenStack.  Once this is merged, will remove the
db recipe from each cookbook.

Change-Id: I309c4d0fedc8c78f779dbd17b265bfa7e78ffd89
2013-06-26 19:33:31 -07:00