Commit Graph

28 Commits

Author SHA1 Message Date
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
Jan Klare 8f514568cd add new Chef OpenStack Team Logo to README
Change-Id: Ifa2e56bf52dfe5e08969242086bfeb59a6e5d1f8
2017-05-29 10:53:08 +02:00
Flavio Percoco fb9a35d6db Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/39340393de6aa7f79361f42c47828634

Change-Id: Ib3381a187bfd8b2d1eef352471530d12584bc4f3
2016-12-08 08:19:46 +00: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 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 d1400a6f23 move from bundler to chefdk
- deprecated Gemfile
- updated TESTING and README
- updated Rakefile to use chef exec instead of bundle exec
- replaced Runner by SoloRunner in specs

Change-Id: I2f2bf3e1f193cb43498d0d10da8500ff59a6f5aa
2015-04-29 10:29:08 +02: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 dd73185f71 Trusty juno updates
* update spec platform versions

Change-Id: Ib177a9a7fa0be853ef46b1ed59a0c0375b4f0103
Implements: blueprint trusty-juno
2015-02-02 16:47:14 -06:00
Mark Vanderwiel a27cfab06e Allow max_connections to be overridden for mysql server
The default of 151 is very small for most openstack use cases.
Picked a higher recommended default that can be overridden as
necessary.
Added stub for newer postgresql cookbook level spec tests.

Change-Id: I0d7b0893d143202f55f04ddcdbc8618aaaacef25
Closes-Bug: #1398527
2014-12-02 15:28:39 -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
John Warren 24092e6851 Set mysql root password directly on resource
Set the mysql root password directly on the server resource, so it
does not need to be an attribute.  This keeps passwords sourced from
encrypted data bags out of node attributes. Note that as indicated
in https://github.com/opscode-cookbooks/mysql/issues/215 all recipes
will be removed from the mysql cookbook in favor of having consumers
work with the resources directly, thereby providing more flexibility
in terms of how the various configuration settings are sourced.
Including the "server" recipe is not going to be a viable option
once that has happened, so this change not only addresses the
attribute issue, but it will also make upcoming changes to the
mysql cookbook more seamless.  Note that the reference to the
default_version_for function had to be removed, because it is no
longer in the cookbook and therefore the build failed. It is no
longer necessary to set the version, as described in the README.md
file:

When [the version parameter is] omitted, it will install the
default MySQL version for the target platform.

Note that the code that sets node attributes in
spec/mysql-server_spec.rb was removed because it was interfering
with the new test and it did not seem to serve any purpose--there
were no failures after it was removed.

blueprint no-secret-attributes

Change-Id: I72be1e2131a107ddc43754bc5cf40a4ce7face95
2014-09-16 14:30:45 -04: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
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 15e2f21455 Icehouse branch version updates
Change-Id: Iab2f90e10a7115cc69ab129de2da734711d4a72e
2014-03-27 11:37:24 -05: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
Ionuț Arțăriși 27bbd6107a README: update requirements and supported platforms
Change-Id: I848fd731234a2315441f2ab62425dfeaa1e7e417
2014-03-06 18:02:34 +01:00
Hugh Saunders 31fc425acd Remove Berksfile.lock from dev branches
blueprint remove-berksfile-lock-from-dev-branches

Change-Id: I16763286632d468f3dbea28750b9ecfee75533cf
2014-01-20 17:30:48 +00:00
Andy McCrae aae68f9848 Move to use "get_password" instead of "{user,service,db}_password"
The user_password, service_password and db_password functions are redundant
since they simply call "secret". Creates a get_password function that will
accept a "type" of db, service or user.

All instances of these calls have been changed to call get_password

Change-Id: I8e1e25e73eb01cbea30435fe7c6c53cab7a15c04
Partial-Bug: #1195915
2014-01-17 16:52:31 +00: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 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 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
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 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
sean 30bbedafbd Use strainer to isolate and test individual cookbooks
Included:
- Add strainer gem
- Update test-related gems
- Add Strainer file
- Remove run_tests.bash
- Update .gitignore
- Update README file

Partial fix for bug 1188345

Change-Id: Idf071c9e70a6f04164a66be31b745811375211a4
2013-06-07 10:47:55 -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
Matt Ray 13286cf341 first commit 2013-05-06 16:41:21 -05:00