Commit Graph

22 Commits

Author SHA1 Message Date
Ghanshyam Mann 48c2e02d00 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: I028dee11bce572e0ceaa8b2f1dab22a1abe00779
2024-02-17 20:49:30 -08:00
Lance Albertson 8151bc7d69 Chef 17 support
- Require Chef >= 16.0
- Update copyright years

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-common/+/813952
Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-ops-database/+/814032
Change-Id: I237243dd038cd1a27a9710131fb4ed016f6ee20c
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 09:31:08 -07:00
Lance Albertson 89013931c2 Cookstyle 6.19.5 fixes
Depends-On: https://review.opendev.org/756168
Change-Id: I37569390af252c1270d7e98aa03c062519a46992
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 17:06:01 -07:00
Lance Albertson aeb030b124 Stein fixes
- Cookstyle fixes
- Remove rubocop_todo.yml as it's no longer needed
- Update documentation
- Update delivery configuration to exclude integration cookbooks

Depends-On: https://review.opendev.org/701027
Depends-On: https://review.opendev.org/706101
Change-Id: I470c9240b5ab88971f2f8291b4ec371d6648ff66
2020-03-19 10:59:34 -07:00
Lance Albertson 3abf7d79a1 Switch RHEL to using distribution packages for rabbitmq
Installing rabbitmq without using the distro version is failing and it works if
you use the distro version. So let's standardize on that for both ubuntu and
RHEL.

Change-Id: If757cf57574bb8389ae270523bfc3772d8dc08db
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-06-16 10:48:18 -07:00
Christoph Albers afc19bd6ce overriding attributes should be the next logical presedence
- using normal to override the attribute will still give the
  chance to override it.

Change-Id: I24210a953871f37b380eceb297597a6f6629d7af
2019-04-03 10:44:12 +02:00
Christoph Albers 3187b91c8f fix rabbitmq config
- since we are using distro_packages for rabbitmq the default rabbitmq
  config name is broken overriding this attribute fixes this

Change-Id: Ia732d5ac4c64eab2126bbc385998585c96ff23d9
2019-04-02 16:01:50 +02:00
Jens Harbott a37377329f Allow to disable the rabbitmq management plugin
There is a bug in the rabbitmq-server setup for Queens that may cause
the cluster to lock up and stop responding[0]. The workaround for this
issue is to disable the management plugin, so add an option that allows
us to deploy this workaround.

[0] https://bugs.launchpad.net/bugs/1783203

Change-Id: I1d0e6c5fb8eeb35e4e966ef102e46c45c357a1ca
2019-03-12 17:37:40 +00:00
Mark Vanderwiel e706132417 Allow on-the-fly mq clusters
Add attribute to allow mq cluster to be built on-the-fly rather
than searching nodes.

Change-Id: I1196f95465c0cb21824954feb261b9d1cfd84d26
Closes-Bug: #1412886
2015-01-21 14:24:00 +00:00
Chris Dearborn 0db09aba5d 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: I4a610409b9542a4c802f94b557299bb97dd0781b
2014-03-10 10:16:16 -04:00
Darren Birkett bc66b00cd9 Install rabbitmq-server from rabbit site for CentOS/RHEL
Fixes: bug 1282041
Implements: blueprint centos-rhel-for-ops-messaging

On CentOS/RHEL, the OS base repos don't have a package for
rabbitmq-server.  The rabbitmq cookbook by default expects to be able to
install the latest rabbitmq-server rpm from the rabbitmq site
(use_distro_version = false).  However, in our cookbooks we are overriding
'use_distro_version' to true, which works for ubuntu as it has a
rabbitmq-server package in it's base repo

This commit basically leaves the use_distro_version flag as false unless
ubuntu/suse is the platform_family, so that CentOS/RHEL can grab the rpm
from the rabbitmq site

Change-Id: I4e31cbb4957f0e696a1528fa3f7c6c80695989ac
2014-02-26 10:44:51 +00:00
Matt Thompson ed732f0832 Clean up cookbook for bp/clean-up-attr-for-mq-and-db
This change removes the attributes we'll be moving to openstack-common
and changes reference of those attributes to reflect new (more
consistent) namespace.

Change-Id: I1602d2e6241a62b188d64fa760786fb95a734404
Implements: blueprint clean-up-attr-for-mq-and-db
2014-01-28 21:19:07 +00:00
Matt Ray d90dd16ab5 Single .rubocop.yml file for all Ruby files, attributes cleanup.
Also changed email & company name.

Addresses: blueprint rubocop-for-ops-messaging
Change-Id: I1bb991184f813bc574e1c6a4f5de3030b82c0b49
2014-01-17 15:13:17 -06:00
Matt Ray 3ff43e644f Ensure the node[openstack][mq] attributes push to the services that use rabbitmq
The node[openstack][*][rabbit] attributes for all the services using rabbitmq
(block-storage, compute, image, metering, network) should default to the same
values as node[openstack][mq]. Bumping the major version accordingly.

Change-Id: Id20a48a3ef2506622239e8e6f15ce1f76060b828
2013-11-18 18:04:31 -06:00
John Dewey b1ad1fd679 Revert "Configure rabbit and EPMD to bind to an address"
Since this breaks people using rabbit in the standard way, I
rather revert this change, and fork my own ops-messaging cookbook
since this is intended as an example cookbook (granted others
may use it directly).  This code would be better off in my
own fork, where i do not impact others, with a non-merged upstream
rabbitmq feature.

This reverts commit 3b35ac204d.

Change-Id: I53da70583c50ae985d3842c3d709eb81f565d63d
2013-07-22 15:14:03 -07:00
John Dewey 3b35ac204d Configure rabbit and EPMD to bind to an address
This change integrates against a rabbitmq cookbook feature which
is not yet merged upstream.  However, given the default code path
does not change, felt okay to get this out there.  Especially b/c
we are dependant on it.  This feature allows one to run rabbit
and clustering across a specific address.  For more details, see:
  http://tickets.opscode.com/browse/COOK-3320

Change-Id: I2a10c551cb2176dadaee8842eeadfdfc8cb93e44
2013-07-14 21:01:11 -07:00
John Dewey e901580a79 Removed attributes now handled by `openstack-common`
Now that `openstack-common` handles the `["openstack"]["mq"]`
attributes, there is no need to set them in the default test cases.

Change-Id: I1987a6c4ae0898bcf2cd0100fd1f5408990f2592
2013-07-03 11:04:31 -07:00
John Dewey c4bcd7ee7b Moved clustering setup to an attribute
Clustering is set to false by default.  When enabled, will setup
rabbitmq disk node clustering.  Also, added opscode to attribution,
somehow had removed them in the previous rebase.

Change-Id: Idd249d0d950f5f4eb44cd7c10566ece254ed7f45
2013-07-01 12:10:23 -07:00
John Dewey 1c0e58dc33 Updating with patterns used in ops-database
We had two reviews which added an ops-messaging cookbook.  Updating
this cookbook with patterns we estabished from the database cookbook.
Craig already did most of the work, however, updated the tests to
use the chefspec find_provider, added clustering support, and attempted
to follow the service_type attribute patterns used in database cookbook.
Since these cookbooks are not complete, added a larger commit than
would have.

Change-Id: I0edfc996df413c6e41a31d53f964d7f5fc9e0aeb
2013-06-27 17:00:06 -07:00
Craig Tracey 8540f839e5 Initial commit of openstack-ops-messaging cookbook
This initial commit provides support for an openstack-ops-messaging
cookbook. In this initial release, we provide the capability to install
and configure RabbitMQ. This cookbook is modeled after the
openstack-ops-database cookbook in the way in which it can be utilized.

Included are tests for all recipes and this release supports Ubuntu
only.

Change-Id: I4d799fa46e67e0f2eca2ac8b205f51c07e0df01e
2013-06-18 19:36:08 -04:00
Matt Ray 7312a60222 secure password and setting the default host and port 2013-05-08 21:42:33 -05:00
Matt Ray 93551e4e98 first pass at minimum Grizzly RabbitMQ settings 2013-05-07 22:51:52 -05:00