Commit Graph

37 Commits

Author SHA1 Message Date
Ghanshyam Mann a048e1094b 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: Id5659595c1a67540fff5434197a06d33cdb9d85e
2024-02-17 20:53:54 -08:00
Lance Albertson 427adf523c Chef 17 support
- Remove bind from Berksfile
- Update copyright years
- Require Chef >= 16.0

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-image/+/814052
Change-Id: I3712128980179e316a88a50d1c103dd8a92bd837
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 12:31:32 -07:00
Lance Albertson 2e5dd8c317 Cookstyle 6.19.5 fixes
Update ChefSpec due to changes made in apache2 cookbook.

Depends-On: https://review.opendev.org/756168
Change-Id: Ie849f5bae082e94581146793f964d0e001a7c8c8
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 20:26:07 -07:00
Lance Albertson 1b39032b8d Stein fixes
- Cookstyle fixes
- Refactor Berksfile to use groups so we can exclude integration testing
  cookbooks
- Update documentation
- Enable sensitive resources for the template[/etc/cinder/cinder.conf]
  and to resources improve security.
- Update delivery configuration to exclude integration cookbooks
- Fix ChefSpec output.
- Switch package installations to send packages as arrays instead of individual
  package resources. This generally speeds up chef runs.

Depends-On: https://review.opendev.org/701027
Depends-On: https://review.opendev.org/706151
Depends-On: https://review.opendev.org/706157
Change-Id: I73948a67e798477cfe7d3cf62474d0ea96f90db2
2020-03-19 11:26:06 -07:00
Samuel Cassiba fd7ca4eddf Convert hyphens to underscores for service names
The Chef Style Guide[1] does not recommend using hyphens for
cookbook or resource names. To maintain consistency, we should follow
best practices.

[1]: https://docs.chef.io/ruby.html#use-of-hyphens

Depends-On: Ic2b6d8f1cdf719791faaebdbd7e29e789eb3f31c
Change-Id: Ib8c788f69e9545b2d7121199590e3795f2212c7f
2018-12-14 23:55:16 -08:00
Christoph Albers 4a7dc692b9 refactoring final step
* added endpoint attributes (moved from common)
* removed qpid as a messaging option (can be incuded in a wrapper)
* deleted default attributes from nova.conf.rb originated in
  openstack-common
* adapted optimized endpoint logic
* removed rubocop exceptions in recipes and regenerated the
  .rubocop_todo.yaml containing all remaining exceptions
* added versionbumb for refactored os-identity and common
* moved version up to 13.0.0 for mitaka release
* removed fedora, suse as supported platform
* adapted the specs (unit tests) to work again
* added new logic into templates/default/cinder.conf.erb
* refactored attributes throughout all recipes that were connected to
  the attributes used for the cinder.conf.erb template to adapt the new
  template attribute syntax
* moved all attributes from attributes/default.rb that were used in
  cinder_conf.erb to attributes/cinder_conf.rb
* refactored attributes to fit upcomming template logic
* refactored recipes to fit upcomming template logic
* removed all attributes from default.rb and cinder.conf.erb which are set
  as default in attributes, openstack doc and used to render the template

Depends-On: Ifa5a7f4e1df47a3961976e64f654224864c3dcb4
Depends-On: I3262b2e6f792f37c32a446e6567790b82bdd4613
Depends-On: I0547182085eed91d05384fdd7734408a839a9a2c
Implements: blueprint cookbook-refactoring
Change-Id: Idadc97bd7380d6c4f9f6f33d9c6b1215a5f24772
2016-02-08 14:39:27 +01:00
Ionuț Arțăriși 8fde9630ae 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: I60798fb39f6167eafd0cc483dca9bb930a236946
Implements: blueprint move-python-db-client-attrs-to-common
2014-07-02 14:32:41 +02:00
Luis A. Garcia c726c9f7c6 Use platform_family instead of platform
As agreed on the mailing list:
https://groups.google.com/forum/#!topic/opscode-chef-openstack/HEL3KqBQIUM

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-09 11:48:53 -07:00
Chen Zhiwei 6ef026325c Rename openstack-metering to openstack-telemetry
update cookbook attribute name, change metering to telemetry

Change-Id: Idd9ca5fdf660a0fb98d7ae532dc29371aad7ef23
2014-03-13 02:56:15 -04:00
Matt Thompson 59c1955caf 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. We also fix a broken test which doesn't properly
converge after changing a node attribute.  Lastly, we handle the rabbit
mq attribute use_ssl.

Change-Id: I12b9c33f89eb35a66bae7420340aff10efd18b1c
Implements: blueprint clean-up-attr-for-mq-and-db
2014-01-24 08:48:41 +00:00
Matt Ray 60e37c5eb0 Unified Rubocop cleanups under single file.
Consolidate all the .rubocop.yml into a single file, finished out cleanups for
all the Ruby files.

Change-Id: I92d5983724d5d0185cd25bea6a0f46657a6c05d4
Addresses: blueprint rubocop-for-block-storage
2014-01-17 15:35:20 -06:00
Matt Ray 018d125a51 Initial rubocop support for recipes.
Per the mailing list thread, introducing Rubocop as a replacement for Tailor.
Assuming Jenkins likes this, more pedantic patches will follow to make Rubocop
happy. So far this is just spacing issues and adding UTF-8 headers, but more
work will need to be done to remove all of the changes for the .rubocop-todo.yml

Change-Id: I590ac5ec03ce6a00dd73027d6798e36105a32af1
2014-01-09 12:38:07 -06:00
alop 73bfaccfee Removed work-around for bug 1169730
Updated cinder packages have made it into precise
https://bugs.launchpad.net/ubuntu/+source/cinder/+bug/1169730

no longer need to manually update stevedore module

Change-Id: I1690b6f9bbb78233a0750c56a99197760a66649b
2013-10-29 11:13:00 -07:00
John Tran bc00347db1 cronjob binary path depends on platform
also refactored some tests

Change-Id: I7ef1082a515898efd26be398fa30d32b756c27c3
2013-09-23 17:43:46 +00:00
John Tran af20b1e521 configurable audit cron and ensure only one
Prior, the cronjobs were being set if there was more than one scheduler node.
This logic will ensure only one node at a time will be set to run the audit.
Cron job is also now configurable to preference.  Prior was setting to every
minute, which is more frequent than necessary.

Change-Id: I27b760b9260963bad3459bf2eb220e2c2966eb0f
2013-09-13 20:36:16 +00:00
John Tran a5cff83f5c Enable ceilometer metering
Sets cronjob for audit and control_exchange

Change-Id: Ib8626f0b756f8a4f0294a5451bdf759ff2ae675e
2013-09-09 17:10:25 +00:00
Chaman 1c95ddcaba Include recipe 'python' before using python-pip resource
Ensure pip command is installed before running python-pip provider

Change-Id: I0f44379d7054dac88c9ceb148f34c2955f083884
2013-09-04 13:57:59 +09:00
alop d8a7f219c1 Upgrading 'stevedore' module for bug 1169730
https://bugs.launchpad.net/ubuntu/+source/cinder/+bug/1169730
Running into this on Ubuntu 12.04

Simply upgrading to a newer 'stevedore' resolved the issues with
the cinder scheduler.

Change-Id: I162c6714d56650fb891ec772bf71126856c82d8c
2013-08-26 11:28:27 -07:00
Ionuț Arțăriși 4949b57572 add PostgreSQL support
Change-Id: Ifcec59a28a4531f8e708c3d053c3cf6c8e99b710
2013-07-17 17:54:23 +02:00
alop ce19634ee3 Initial commit of cinder-common
Noticed that every recipe in the cookbook had a declaration for the
cinder.conf template, with a notify to the service defined in that recipie.

I moved the template, and the variables that it needs to populate,
to cinder-common.rb, included that in all the other recipes,
and changed the notify in the template to subscribes in each service
Also, added a spec for this.

All tests pass

Change-Id: Ibcab9566a907e1ea9febbd61e37b9587625a15e6
2013-06-02 23:19:17 -07:00
Carl Perry d17c345fde Moved attributes to the openstack namespace
Change-Id: Id18ff424018ded60c9c4570d81dbf5359f0187b7
2013-05-18 19:39:08 -07:00
Matt Ray e37be72e3d rename cookbook from 'cinder' to 'openstack-block-storage' and attributes accordingly.
Change-Id: I5f797567d110281b4698cbc6dbae5b76b03bdf67
2013-05-18 18:22:48 -05:00
John Dewey 36e51d8963 Removed local patches
These patches make assumptions that are a bit too liberal.
As these cookbooks are more widely used, these should be
moved into a wrapper cookbook.

Change-Id: I5348876712418a520659aab606065e5a5b288d99
2013-05-16 14:10:13 -07:00
John Tran bebda71d3e only run on one node 2013-05-08 20:15:28 +00:00
John Tran 214b7b8b31 cron minutes configurable as attribute 2013-05-07 21:59:31 +00:00
John Dewey 170ef0404d AT&T cleanup 2013-05-05 19:48:42 -07:00
John Tran e640b287ba adding audit usage script 2013-04-09 00:17:51 +00:00
John Tran 26a2105e46 add syslog 2013-03-13 03:14:55 +00:00
Jay Pipes ec61d22251 Corrects rabbit variables on api and scheduler 2013-01-13 14:42:20 -05:00
John Dewey 613af33057 Re-"Revert "Foodcritic cleanups""
This reverts commit 519f1996ef.

Corrected the notification syntax.
2013-01-07 17:17:45 -08:00
Jay Pipes 519f1996ef Revert "Foodcritic cleanups"
This reverts commit 75659d82d5.

Conflicts:

	attributes/default.rb
2013-01-07 11:22:27 -05:00
John Dewey 75659d82d5 Foodcritic cleanups
Nice thing about the new syntax, you can notify resources defined later.

FC043: Prefer new notification syntax: cookbook-cinder/recipes/api.rb:91
FC043: Prefer new notification syntax: cookbook-cinder/recipes/scheduler.rb:49
FC043: Prefer new notification syntax: cookbook-cinder/recipes/volume.rb:61
FC043: Prefer new notification syntax: cookbook-cinder/recipes/volume.rb:84
2013-01-03 20:17:20 -08:00
Jay Pipes 6c5ef83b32 Update Cinder to use new Keystone and openstack-common
* Use new keystone providers
* Use new user_password, service_password, and db_password
  routine from openstack-common lib 0.1.5
2013-01-03 22:38:36 -05:00
Jay Pipes c82ef4dbc8 Fixes from marathon chef-client debug session
* Fixes hard-coded db password for Cinder with lookup
  of the cinder_db_chef_role attribute
* Fixes typo of glance_host and glance_port in config template
* Fixes incorrect keystoneclient.middleware reference in api-paste
  template
* Removes recipes/common.rb, as it was pointless now that the
  config template processing had to be moved into each service recipe
* Removes the recipes/setup.rb, as it was all for the API service,
  so moved the keystone_register calls directly into the api.rb recipe
2012-12-07 18:07:45 -05:00
John Dewey e88d487928 Corrected OOO issues
This cookbook looks a bit more like RCB due to some difficult to solve
OOO issues.

1. Needed to duplicate the cinder.conf template in each service needing it, due
   to the following reasons:
   a. Having a notifies in common.rb to restart services that were not defined
      yet (but in later recipes) broke the recipe.
   b. Having notifies in common.rb for services that were not installed breaks
      things.
   Due to this very diffuclt issue to solve, felt it was okay to duplicate the
   template rendering.

2. Need to lookup the database password from a mysql server query, like we do
   elsewhere.  Have not tackled this yet.  Hardcoded to see if service would
   finally install.

3. Reformatted a few things to match our other openstack cookbooks.

4. Found a few bugs with endpoints needing '.to_s', or missing @ reference
   in template.
2012-12-06 20:22:30 -08:00
John Dewey b5d66bfafc Need to install keystone packages in nova-common
Also structured cookbook like our other nova cookbooks
2012-12-06 17:22:04 -08:00
Jay Pipes fe9993cdc9 Massive refactoring of Cinder cookbook
* Updates the attributes to align with openstack-common and
  the other AT&T-standardized OpenStack cookbooks
* Splits the single server recipe out into recipes for
  common, api, setup, volume and scheduler so that nodes
  can get the Cinder API, Cinder Scheduler and/or Cinder Volume
  service installed separately
* Pull in the isci and tgt packages, matching RCBOps volume recipe
2012-12-05 21:38:33 -05:00