Commit Graph

30 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 f3c9fca120 Cookstyle 6.19.5 fixes
Depends-On: https://review.opendev.org/756168
Change-Id: Ia379098ac40eee7a6627fe10b9320ff59468391f
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 17:04:22 -07:00
Christoph Albers 6ae2f275b1
mariadb server config utilization
- allow overriding of some common config options

Change-Id: Ie832477216df5c1b0b94d75ba1ee6cc1bf968219
2020-09-22 11:55:37 +02:00
Jens Harbott 7ed8573899 Fix mariadb repo setup
Instead of always creating the mariadb default repository we should
only do it when requested by the node environment.

Do this implicitly via the mariadb_*_install resources that have
an option to decide whether a repo should be set up or not.

Change-Id: I4f62dd7a7df247ddb787553bef58ca81d8e062fb
2020-09-17 10:09:14 +02: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
Samuel Cassiba b876cd00e5 Initial ops-database Pike updates
- Switched default linter to cookstyle
- Renamed rake tasks to better conform with Chef conventions
- Normalized template banner

Change-Id: I76bdb4149965ab7b23709762559bd6c71753cc8b
2017-08-25 09:58:14 -04: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
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
Jan Klare 6cdfe56ea2 increase mysql max_connections
* increase mysql max_connections from 151 to 307 to avoid mysql errors
  in integration tests

Change-Id: I831998cace276fa7b5889e15f1ad938903d0d410
2016-10-11 13:01:37 +02:00
Sharat Sharma 2c9f3dfd3c Fixed the typo of UTF-8 which is leading to errors
Change-Id: I47fc15034861b55b1650f82d74e9581ab51f0b50
Closes-Bug: #1624094
2016-10-03 17:16:34 +05:30
Mark Gloshen acc54b2680 Add additional mysql tunables
Adding more mysql tuning options to better support production-like
environments. These additional attribues have been set to default
values that match the mysql defaults. Including spec tests.

Change-Id: Iadb0746354ea93a6beef9ecbae5d1bdc5cec1d48
Closes-Bug: #1436481
2015-04-09 15:13:03 -07: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
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
Luis A. Garcia 9a7bd31154 Use platform_family instead of platform
This will allow the ibm_powerkvm platform to be recognized and will
simplify uses of multiple platforms from the same family.

Change-Id: Iebf2aad9f3b4649fb5c27d2fc93ee60c67e42737
Partially-Implements: blueprint add-ibm-powerkvm-enablement
Implements: blueprint platform-family
2014-04-08 14:34:43 -07:00
Chris Dearborn e76386f81c Add ability to specify IP for service
The problem that this change addresses is that the address_for method
will not work correctly if there are multiple IP address associated
with the specified interface.

The approach to solving this problem and moving towards the overall
goal of having one place where service networking information is
stored is to convert address_for calls into endpoints, and add a
address() method to the endpoints interface for IP address resolution.

The address() method has the following behavior: if the
bind_interface of an endpoint is set, then the IP is looked up on
the interface.  Otherwise, the IP specified in the host attribute is
returned.  This allows the caller to choose either method of
determining what IP a service will be bound to.

This initial change switches both the openstack-ops-database and
openstack-ops-messaging cookbooks over to use endpoints instead of
address_for.  The other cookbooks will be switched over time.

blueprint increase-ip-binding-flexibility

Change-Id: I2d1c40ec79a2533be150c5b4ea6e1f396c500e9d
2014-03-10 13:26:13 -04:00
Andy McCrae 412512a33e Update attributes to be rubocop compliant
- Update rubocop config to handle entire repo in one file
- Update Strainerfile to run rubocop only once
- Update attributes to comply with rubocop

Change-Id: I299c2775a5a124b0af74f2e3d844cbd91f93380f
Addresses: blueprint rubocop-for-ops-database
2014-01-20 09:31:15 +00: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 f029184932 Removed the attributes provided by openstack-common
The common library should provide the database attributes
we expect set.

Change-Id: I1e8cf39364eee144a34670e4562c4e29bce8e508
2013-06-27 21:42:14 -07:00
John Dewey d5851ae4a3 Using the common `["openstack"]["db"]` attributes.
The openstack-common library provides the new attributes, this
cookbook needs to integrate against those.

Change-Id: I99f9577b6d96693463d21dced9633bab61469378
2013-06-27 11:42:07 -07:00
Jenkins c904ecc2ae Merge "Moved database table, user, grants creation" 2013-06-27 16:36:43 +00: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
John Dewey 1e803e8540 cleaned up comments
A couple comments were not formatted the same as our other cookbooks.

Change-Id: I0f8d7abe8e04d6b5d0b9036a1429c33e451b0704
2013-06-26 14:47:28 -07:00
John Dewey 6e0df1d809 Prep work before adding each db recipe
Brought in openstack-common as a dep.  Updated the tests to
better match what the recipes are doing (added tests where
missing).  Updated attributes to match the format of our other
cookbooks.  This is mostly some cleanups, to prepare for features.
Since this cookbook is not in use, made a larger commit than
would have if adding functionality to a released cookbook.  Also,
upgraded to new Berkshelf which handles locking to cookbooks properly.

Change-Id: I8e4123d30012a9890ce3029184e1396d2083a6f1
2013-06-25 18:12:21 -07:00
Matt Ray 834838bcdc Basic testing of the ops-database recipes.
This creates basic testing of the recipes as well as remove unused code such as
the fedora support and the use of passing attributes to openstack::packages.

Change-Id: Iece19811151fbdfd067e12d3b3163cfb78174e49
2013-06-04 14:25:48 -05:00
Jay Pipes 27911c00eb Brings in Matt's openstack-ops-database work
Just bring in Matt's original work on the ops-database
cookbook.

Corrects what I think was a typo for the database service
role name attribute from openstack::role::database to
openstack::database::server_role

Brings in Berksfile and Gemfile and stubbed specs to pass
gates. Also sets version to 7.0.0 to match semantic versions
of openstack project cookbooks.

Change-Id: Idc02435ff7d3ff4b8a04c2bfc5abbb1e3091cb68
2013-05-29 12:36:07 -04:00