Commit Graph

34 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 08dbb7297d Update to rabbitmq ~> 5.8 cookbook
- Set sensitive=true for all rabbitmq resources being used to improve security
- Remove any default actions

Change-Id: Idf0c386f24df5dd2907fa0db59daf770e9c13f2d
2020-03-30 14:24:20 -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
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
Samuel Cassiba d41044ce64 ops-messaging refactor for Pike and Chef 13
- implemented foodcritic and cookstyle corrections
- deprecated node.foo.bar method access for node['foo']['bar'] bracket access
- updated for the most recent upstream rabbitmq cookbook

Implements blueprint modern-chef

Change-Id: If971a472c1fd9149a891200548a267655620fce2
Depends-On: I143e0ed0a2bdd76269fc0c402052696426d96d81
2017-11-28 17:00:50 +00:00
Jan Klare 2064bd3d98 rabbitmq cluster_nodes attributes should be array of hashes
Change-Id: I471ef78d72adc76848e6c04322918d81093530dd
2016-07-07 09:43:49 +02:00
Jan Klare 503703fb2b use bind_service instead of endpoints and cluster properly
* rabbitmq should use the bind_service attribute instead of the endpoint one,
  since these could be different
* adapted rabbitmq clustering attributes
* adapted rabbitmq clustering search to point to recipe instead of role

Depends-On: Iae7e302973805af3cb44be1b29d0e61e76eb0aa0
Implements: blueprint cookbook-refactoring
Change-Id: I08ed288e63422078d9beb36d14fd3c05f1cac435
2016-02-16 15:58:10 +01:00
Jan Klare 1e0a81aecd adaptions to work with refactored cookbooks
* adapted rabbitmq-server recipe to fit new endpoint logic
* removed unneeded server recipe
* fixed typo in rabbitmq-server recipe (port -> ssl_port) attribute
* adapted specs to properly check for ssl configuration

Depends-On: I0547182085eed91d05384fdd7734408a839a9a2c
Implements: blueprint cookbook-refactoring
Change-Id: I80ed8a7892b59f7fd582505445a31b0df8d68752
2016-02-08 10:42:52 +01: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
wenchma 12e3502ed8 Add another workaround for the issue#153 of rabbit cookbook
Append the patch https://review.openstack.org/#/c/128203/

Change-Id: I5a47a652b7285e2ac902355475d0680d642ca54e
Closes-Bug: #1380940
2014-10-31 09:49:17 +08:00
wenchma 4a0b9cf241 Add a temp workaround for an issue #153 in rabbit cookbook
After configuring rabbitmq, restart the service to make configuration
take effect. So during OpenStack deployment, OpenStack services can
connect to rabbitmq successfully.
This workaround will notify rabbitmq-server to restart immediately.
This could be remove once the issue #153 is fixed in rabbit cookbook.

Change-Id: Ib017226f46c7e26429bb26df5b63525e1a98bc82
Closes-Bug: #1380940
2014-10-22 23:18:51 +08:00
wenchma 0b087d93f3 No need to push our rabbit user/pass to rabbit cookbook
Because the rabbit user/pass is stored in internal user database,
no need to push them to rabbit cookbook and expose them in config file.
And configuring rabbitmq default password with clear test is insecure,
so remove it.

Change-Id: Iab95e2dc8cd28b4a45574cf8883f1626dc332db0
Closes-Bug: #1381343
2014-10-17 09:42:19 +08:00
wenchma c9559630c6 Fix the conflict configuration on rabbitmq port
In current logic, rabbitmq port will be set to ssl-listening port,
this will make rabbitmq fail to start.
This submit will configure rabbitmq port for both ssl and non-ssl cases.

Closes-Bug: #1353884

Change-Id: I37dc9b656c553554b9bc636fe35c69744debe92a
2014-08-26 09:34:58 +08: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
Christopher H. Laco bc8c18e90d Upgrade/Update rubocop
Now that almost all of the rubocop blueprints have been completed, make
one final pass through all of the cookbooks ensuring they're all in
sync with each other.

- Upgrade rubocop to 0.18.1
- Fix violations caused by 0.18.1 upgrade
- Move Excludes for non-existent folders to Includes so they
  automatically cover future additions

Change-Id: I9473903e19f075cff520a2fa7602ad779e7f13db
Implements: blueprint lint-and-unit-testing-for-havana
2014-02-04 16:03:30 -05: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
Andy McCrae 6d04e3e704 Update recipes to be rubocop compliant
- Add rubocop.yml in recipes/
- Add recipes rubocop tests in Strainerfile
- Update recipes to comply with rubocop

Change-Id: I258b2ed24a6b2f1221ec8b5e188bd4567bc63f99
Addresses: blueprint rubocop-for-ops-messaging
2014-01-17 11:32:13 +00:00
Andy McCrae fbcfd04ff3 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: Ic73c99034638ec092192d11e37671edbba0e48ef
Partial-Bug: #1195915
2014-01-15 18:46:56 +00:00
jiehua jin ecff952bd5 make AMQP support when develop_mode=false
When develop_mode=false, the password of mq user "guest"
in the databag user_passwords is required. But the current
code doesn't support. I made it work, and add the test cases.

Closes-Bug: #1257554
Change-Id: I0d01bd73eaec9cc90304e67484fec15fad061504
2013-12-24 08:46:12 +00: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 ead7e5ded2 Sort the results
Results need to be sorted.  OpenSource Chef 11 doesn't preserve order.

Change-Id: I00e649f1833915f6372d7d59dcefc6c073aca29f
2013-07-12 23:10:41 -07:00
John Dewey 7dc0fdd164 The upstream cookbook already resets rabbit
No need to do what upstream already does.
  https://github.com/opscode-cookbooks/rabbitmq/blob/master/recipes/default.rb#L136

Change-Id: I549558a4b8cf45902389a06041bf846e16290386
2013-07-11 18:44:56 -07:00
John Dewey 1abe03c3e6 Searching on wrong environment
We need to use chef_environment vs environment.

Change-Id: I2ceba5a49ec88f81ad763379bebbd63d9bd19bb8
2013-07-11 16:40:06 -07:00
Jenkins 0e9747f6a2 Merge "Removed default recipe" 2013-07-05 19:40:50 +00:00
Jay Pipes 58d65e4d99 Removed default recipe
Should be specifying the server recipe, and
not have a default recipe.

Change-Id: I9685fbac64f93eac3b9e6a9451d9e948225f3c49
2013-07-01 16:30:25 -04: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