Commit Graph

97 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 08f84ac085 CentOS 8 support
- Update package names
- Migrate to using apache2_mod_wsgi resource and require apache2 ~> 8.6
- Update ChefSpec

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-image/+/815148
Change-Id: I7223112092393e3c2ef8a871bb2b2e20326dafdd
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-22 12:28:55 -07: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 1600e4752d Updates for Train
Changed:
- Update release to train
- Update to apache2 ~> 8.1

Fixed:
- ChefSpec

Removed:
- Unused rubocop rules

Change-Id: I804485a93475cdfd651ccee21c93fce844872b3b
Depends-On: https://review.opendev.org/731859
Depends-On: https://review.opendev.org/731860
2020-06-09 10:14:15 -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
Lance Albertson 873b58d13b Update to apache2 ~> 8.0 cookbook
This brings us up to date with the latest apache2 cookbook which
included a major refactor in 6.0.0 removing all of the definitions and
recipe with proper resources. Instead of using the apache2_default_site
resource, directly use a template and then enable the config file using
the apache2_site resource. This gives us the most flexibility.

Other changes:
- Remove selinux for depends as it's not being referenced anywhere in
  the cookbook
- Included more ChefSpec tests for api recipe
- Update WSGI template
- Include additional cookbooks in Berksfile required for CI

Depends-On: https://review.opendev.org/702772
Depends-On: https://review.opendev.org/701824
Change-Id: I289091f54750dd5068e98fd4f4853880f4b72c6c
2020-01-30 09:29:10 -08:00
Lance Albertson 2325d92071 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

Change-Id: I3331a19d1106a817e3e25a6520a8c6c1dde338ff
2019-12-06 10:45:04 +00:00
Zuul d389184017 Merge "Pin apache2 cookbook to 5.0.1" 2018-12-17 10:52:28 +00:00
Samuel Cassiba 3d6d2c9f37 Pin apache2 cookbook to 5.0.1
This change eliminates a kitchen failure with apache2-5.2.1

Change-Id: I4ad2a8f98db26460ff4e13b5855f8a1f16ebf7dc
2018-12-13 23:44:42 -08:00
ZhijunWei e582cff7cf Change openstack-dev to openstack-discuss
Change-Id: I84aaaeea3b789ea0903f9c46fd5bfe612a2a3bb7
2018-12-04 23:20:57 -05:00
Samuel Cassiba 681a71fb33 starting rocky development patch
Change-Id: I829e8e793d107b9bf6d35781480cafdb27f7a928
2018-08-03 06:39:18 -07:00
Samuel Cassiba 6a083d4ab0 starting queens development patch and use git.openstack.org
* use git.openstack.org instead of github for berks dependency
resolution

Depends-On: https://review.openstack.org/549345
Depends-On: https://review.openstack.org/549346
Change-Id: Ibd7dd33b687715c286fb0fd18362facfcb09c401
2018-03-06 12:12:14 -08:00
Samuel Cassiba c18919e533 block-storage refactor for Pike and Chef 13
- deprecated postgresql support
- dropped apt cookbook dependency
- deprecated node.foo.bar method access for node['foo']['bar'] bracket syntax
- implemented foodcritic and cookstyle corrections
- migrated cinder api to a Chef-managed config
- deprecated cinder-group-active service, as it is no longer needed and gets in
  the way of functionality
- added lvm cookbook dependency for better pv/vg handling

Implements blueprint modern-chef

Change-Id: Id248c9267af6750c871487bc8b577aa2011a782a
2017-12-12 17:34:08 -08:00
Jan Klare a29984d301
starting pike development patch
Change-Id: I8763df1d627bf840035fcde552bac3e9820ca913
2017-08-17 14:18:49 +02:00
Samuel Cassiba d2ff4496bb Added systemd unit, style and lint fixes for chefdk
- cinder-group-active is still SysV, but can and will start via systemd if
  coaxed to do so.
- Style and lint fixes for newer chefdk
- Removed ancient Gemfile
- Rewrote metadata.rb for readability

Change-Id: I4c26aea78220eb20fc4e5e964af93414855df5f6
2017-08-02 02:15:54 -04:00
Jan Klare 517e021e9e starting ocata development patch
Change-Id: I3584b1187b629d2340f23f95ffe077779fa0633c
2017-02-23 17:05:49 +01:00
Jan Klare 88f40c442e update cookbook dependencies for next release
Depends-On: Ib256c315d5439beb8d4ec83c5cc7d7c9b182378a
Depends-On: Ic6b00a08ec29a9a7c04a72c743af5f756db45edf
Change-Id: Ib11ceab6a4192057904c0111074d41176144e2a3
2016-12-05 12:33:20 +01:00
Christoph Albers 49d23da167 use_cookbook-openstackclient/identity_v3
- Now use cookbook-openstackclient to create endpoints role service and
  user
- added domain creation and access granting
- added values to work with identity_v3
- rewrote specs to work again
- added needed keystone_authtoken attributes
- updated README

Change-Id: I2f339055883354c6a8a77daa7967ff279c4d18d9
Depends-On: I0f8955f05de9b33711c54b9a198f45018cceb8e1
Depends-On: If7b4d6e563081a0be9957353d73ef61a9688df56
2016-09-30 10:58:23 +02:00
Samuel Cassiba ddad81bf9b Increment apt cookbook to 4.0
As a requirement for Ubuntu 16.04, the apt cookbook needs to be at least 4.0

Change-Id: I47416ef32af0e00acbcc366c9acdae306862a56a
Depends-On: I07ad79a93642d0f0c934a864fcb9bcd7b764e35f
Implements: blueprint newton-xenial
2016-08-03 16:35:02 -07:00
Samuel Cassiba 67149f00ff Style and lint fixes to support newer ChefDK
Change-Id: I39f35c718e706b8f29c2b4d6d6cbd270b510183e
Depends-On: I6ce4587caa3ae68ddbd3ef1a521aaf46f4840b2c
Depends-On: I0a3872cd3a21c31b5e3a7b6190f911280e9ed909
Depends-On: I34e4c7b29ff7c36c91245d90fb0b6897847cd22f
2016-07-06 09:20:23 -07:00
Jan Klare babac2c1f2 initial commit for the newton development cycle
Change-Id: I9b9b61179b7ef045d6bf6f2c134b26b4c27b4eeb
2016-05-31 10:13:37 +02:00
Jan Klare 79bef2f7ac update the README after refactoring and align it with other cookbooks
Change-Id: Id5f634b58aefc434ad1d2942695bf10b4a1f5be5
2016-04-26 15:39:01 -05:00
Jens Rosenboom 6ce1eb3be6 Get rid of dependency on python cookbook
The python cookbook is deprecated, so we should get rid of it, in
particular as we do not seem to need it anymore.

Change-Id: I4320035a0fff6479d96215239eec9006b4e79754
2016-03-30 01:43:34 +02: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
Jan Klare 9edde995d9 update apt cookbook version
Change-Id: Ic58cbec9ba9ee7e5fb021b745a2dcd2d926332a0
Depends-On: I4ddebafeba997ef2d4e39197f7cd2e74c9bb43c5
Depends-On: Ia0815db80e23e865771bced695067a5a95aa376e
2015-09-17 09:54:20 +02:00
Mark Vanderwiel b2b093cc3b Initial Liberty Changes
Metadata changes
- Updated maintainer email
- Updated the version

rubocop updates
remove db2 refs

Change-Id: I4be2304091443ee173ebb4605e24b54c699b929a
2015-08-31 12:05:03 -05:00
Mark Vanderwiel 7386afb7c0 Replace deprecated get_secret
Use get_password 'token' instead.

Change-Id: If7b01ecaed9b51798acc53c9ea4833cb74250f62
Partial-Bug: #1467662
2015-06-22 15:50:38 -05:00
Mark Vanderwiel ba480c6a99 Allow rabbit mq kombu ssl configuration
Add the rest of the kombu ssl configuration options.

Change-Id: I9dc682a2a8e4df289b9c0bbca11208183d1ff71b
Partial-Bug: 1464706
2015-06-16 10:08:29 -05:00
wenchma 3c0ceb9f4c Add rabbitmq max_retries and retry_interval in cinder conf
Oslo.message using rabbit_max_retries and rabbit_retry_interval to
define reconnect rabbitmq server times and interval when can not
connect to rabbitmq server.

Change-Id: I449f7be68dd9c9adbad587a47cf9d9dcc3462369
Closes-bug: #1439968
2015-06-12 15:06:43 +08:00
Mark Vanderwiel 0b94103098 Cleanup minor rubocop offenses
Cleaned up all the minor rubocop issues, the ones left relate to
complex logic and what I think is a bug in rubocop for nested
vs compact modules/class definitions.

Change-Id: I5ac6d513c3b1397ba7205dc6f661134a93d17741
2015-05-28 14:43:16 -05:00
Lan Qi song cba98483b2 Add support for cinder-backup service
Partially-implements: blueprint chef-cinder-backup
Change-Id: I961d8875e35c26efa2ff9e7be0bb576cb8e345fa
2015-05-06 13:55:56 +08:00
Yi Ming Yin da3e1d4d57 Update selinux to include ubuntu support
This is a follow up change regarding the discussion in
https://review.openstack.org/#/c/161991/

Change-Id: I1c08c1304964c334ffc216723deda67abc4cc832
2015-03-14 15:29:31 +08:00
Mark Vanderwiel 3d566f0146 Initial kilo updates
Change-Id: Idf43a4af9c5a2d666fd3938a63fb8e7f5c74a5be
Partial-Bug: #1426424
2015-02-27 14:46:22 -06:00
Mark Vanderwiel 8736b36606 Switch back to pessimistic version constraint
Change-Id: Ie50f2a0c2a5f8e7b09847511d2269d3ef1ae9633
Partial-Bug: #1425192
2015-02-24 14:10:45 -06:00
Mark Vanderwiel c70c3b00bd Ceph should come from supermarket
ceph 0.8.0 was tagged in supermarket, cleanup to use normal
supermarket berks path.

Change-Id: I5fd8f4063fe613bfaf6ca5adca3b9294153b2021
2015-02-19 11:04:24 -06:00
Mark Vanderwiel a64f21c3eb Control dependent cookbook versions within a range
* For stable juno branch, need to stablize which cookbook are used.

Change-Id: I624004cc1fc4acfdc0b6a389a9748f0b44acc271
2015-02-12 17:01:22 -06:00
Mark Vanderwiel aa93aa9663 Missed bumping Common version
Change-Id: I4c557d75a803263cbcd0f3a22f9628b35ab4941e
Related-Bug: #1412919
2015-02-09 11:35:46 -06:00
Elliott Davis f75d819c2f Add dependency on upstream ceph cookbook for better key management
The upstream ceph cookbook already hooks into chef for environment information.
This patch utilizes the client LWRP to create or add ceph keys for RBD support.
This patch also changes some default attribute names for more sane organization

Partial-Bug: #1409943

Change-Id: Ibba6c568d4e4d00153061458b71593cd28714e60
2015-02-05 09:11:12 -06:00
Yi Ming Yin dad180e458 Disable configuration of tgtd on RHEL 7
- This is a stage I fix for bug #1400958. First disable the related
resources for tgtd.
- Bump version to 10.1.0 to indicate this is a start point of new
platform support

Change-Id: Id3757f7847ba0620d4bf4492160921389e3ef475
Partial-bug: #1400958
2015-01-13 09:17:33 +08:00
Mark Vanderwiel 0adf0c18dc Cleanup cookbook contact info
* Consistent email across cookbooks
* Add Contributor.md to help out new folks
* Fix file modes
* Fix broken link in Testing.md
* Readme tweaks

Change-Id: I7df0fe015328b675baceecc9d0ec30860cf829f6
Partial-Bug: #1342735
2014-10-14 09:40:31 -05:00
leileiz 3b3c18ff81 Update cinder.conf permission
cinder.conf contains some secret information such as qpid password.
To prevent unauthorized users to access it, this file should be set
as 640 mode.

Fix bug 1369467
Change-Id: I12a0e6e3e492397f1282366ab38ed1e1f46997f7
2014-09-17 06:49:38 -04:00
Mark Vanderwiel 12d0e9826a Setting up repo for master Juno Branch
* Update metadata version
* Removing Strainer file
* Adding Gemfile.lock to .gitignore
* Updating Gems
  * chef (11.12.0)
  * chefspec (4.0.0)
  * rspec (3.0.0)

Change-Id: I8b6858e811cc42ea53ec81ee4e3e70c65d4d444e
Partial-Bug: 1349865
2014-07-29 15:38:49 -05:00
Mark Vanderwiel 84e52038f8 Allow create volume group with block devices for lvm
Add new attribute, create_colume_group_type to allow
either create simple test volume based upon a file
(as existing support does),
or create volume group based upon block devices.

Change-Id: Ia81354f9fab9310c1b5e633d4ca05e434f9c2da6
Closes-Bug: #1321336
2014-07-11 15:33:45 -05: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
Yi Ming Yin a7bd7eb0ed Add multiple backends support for cinder conf
This implementation allows users to configure multiple backends for
cinder volume. By providing a hash map for different volume driver
sections, cinder.conf can be configured to support multiple backends.

Change-Id: Idec6691168c6a67f1a11f7174a8a97ffb950d7b8
Implements: blueprint cinder-multi-backend-conf
2014-06-12 13:56:18 +08:00
Matt Odden 93bc078893 Add missing AMQP options to cinder.conf
Add more AMQP and QPID configuration options
to the cinder configuration file. This enables
users to use QPID federation support and also
use durable queues for rabbitmq or QPID.

Change-Id: I2293f1b718dda8f3be889b3a4d241fce7713ece2
2014-05-29 20:44:39 +00:00
Mark Vanderwiel c16faa418a Fix default value for storwize_svc_vol_rsize
The default for storwize_svc_vol_rsize is '2%', should be just 2.

Change-Id: Ief51ad89bceaee043279e03b57c09c2b3f59d0af
Closes-Bug: #1320647
2014-05-28 12:57:18 -05:00
shuozhang 8b2ee6face Add support for misc options in cinder.conf
Add misc_cinder in cinder.conf like misc_nova.
Add test
Closes-Bug: #1314105
Change-Id: Ia23809e33dd1b64e276d373ce87355dbecf857e9
2014-05-22 15:16:49 +08:00
Bill Owen 860a4ea53a Publish correct gpfs attributes to cinder.conf
Three extra attributes were being published to cinder.conf when volume_driver
was set to gpfs.  This patch corrects this problem.

Closes-Bug: #1320372
Change-Id: I4e1290aeac92c56beaad0ebd0941afaf249469e2
2014-05-19 09:31:44 -07:00
gengjh 409d883b0f Get the vCenter password from databag for cinder
1. Add new attribute openstack_vmware_secret_name to indicate the
databag secret key
2. Get the password from databag if dev mode is false
3. Update the test cases

Implements: blueprint vmware-password-databag

Change-Id: Id6872d38c255067a4991aceaa0bf6fb400cce1c8
2014-05-09 22:19:09 +08:00