Commit Graph

23 Commits

Author SHA1 Message Date
Ghanshyam Mann faa39e7a24 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: I0d0eb6f34bac0c95f38f857845212a09ba6aa7c9
2024-02-17 20:56:48 -08:00
Lance Albertson e1accbc3d6 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
Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-network/+/815172
Change-Id: I1e62b07c634845ecaac088d7ff4cceb78af680de
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-22 16:41:06 -07:00
Lance Albertson 580719e17b Chef 17 updates
- Update copyright years
- Require Chef >= 16.0
- Remove bind from Berksfile

Change-Id: I315658caeb621419c859be5054f739dbed3f3593
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 17:04:14 -07:00
Lance Albertson eb3785ad0b Update to Chef Workstation 21.2.303
- Cookstyle fixes

Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/779389
Change-Id: I36d145087e9240764299358d6fd3fe11fd779544
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-03-08 16:34:50 -08:00
Lance Albertson 315e9d77a7 Chef 16 updates
Depends-On: https://review.opendev.org/747557
Depends-On: https://review.opendev.org/747602
Change-Id: I7aa471dba4bc1ff7077496824ddf15aee8ca863e
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-08-27 17:40:37 -07:00
Lance Albertson d8c702eaec Stein fixes
- Cookstyle fixes
- Refactor Berksfile to use groups so we can exclude integration testing
  cookbooks
- Update documentation
- Cleanup line wraps
- Enable sensitive resources for the template[/etc/ironic/ironic.conf] to
  resources improve security.
- Update delivery configuration to exclude integration cookbooks
- Fix ChefSpec output.
- Add missing ChefSpec tests
- Switch package installations to send packages as arrays instead of individual
  package resources. This generally speeds up chef runs.
- Cleanup array syntax using %w() instead of []

Depends-On: https://review.opendev.org/701027
Depends-On: https://review.opendev.org/706101
Depends-On: https://review.opendev.org/706151
Depends-On: https://review.opendev.org/706157
Depends-On: https://review.opendev.org/708059
Change-Id: Icf11e0e66e1d9d34c4b8142e2a6a14d2da666390
2020-03-19 12:57:49 -07:00
Lance Albertson b643c5f620 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.

Additional fixes:
- Install mod_wsgi as a package on RHEL since there is no built-in
  resource for it.
- Convert web_app to template and subscribe to restarting apache.
- Remove erroneous restart for ironic-api service on packages
- Properly set service password and auth URL
- Improve tests for ironic.conf
- Add missing apache2 depend
- Add missing api RHEL ChefSpec tests
- Include additional cookbooks in Berksfile required for CI

Depends-On: https://review.opendev.org/702772
Depends-On: https://review.opendev.org/701824
Change-Id: I198e2c211630e190bf2a992b3dc6b6c5afaf54e8
2020-01-30 11:22:56 -08:00
Lance Albertson 813fbd2c68 Fixes to support fog-openstack-1.x
fog-openstack-1.x already appends "auth/tokens" so we no longer need to
do that.  In addition, comment out endpoint type until this PR [1] gets
merged and released.

[1] https://github.com/fog/fog-openstack/pull/494

Depends-On: https://review.opendev.org/666176
Change-Id: I068e7b85a052d6bd3f03e96878e67e8b1c3a974f
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-07-03 16:03:24 -07:00
Jens Harbott 65137ffed4 Drop admin endpoints
The admin endpoints offer no special functionality, users may talk to
the public endpoints instead. The only historic use case has been the
keystone v2 admin endpoint, but with keystone v3 API, even that is no
longer needed.

Also stop creating cache dirs that were only needed while keystone
supported PKI tokens.

[0]
https://opendev.org/openstack/openstack-chef-specs/src/branch/master/specs/ocata/all/drop-admin-endpoints.rst

Depends-On: https://review.openstack.org/652050
Change-Id: If6226717a359b8e09b5d28077e7adaff82055626
2019-04-16 09:35:35 +00:00
Samuel Cassiba 68389100a4 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: Ib8b6ed53f2d4e97ea5bfc89f5fb8fac42308b3b7
2018-12-14 23:55:39 -08:00
Samuel Cassiba 28d5e53fd7 Refactor ironic cookbook
* added endpoint attributes
* moved version to 18.0.0 for Rocky release
* refactored attributes to fit the template logic
* moved attributes for ironic.conf to attributes/ironic_conf.rb
* adapted identity registration for the client library cookbook

Depends-On: https://review.openstack.org/599860
Change-Id: Idd4b3ecbc9f0a91f12450aad8ff679665dd18cce
2018-09-04 15:30:01 -07:00
Jan Klare e68ef3ce8c retire unmaintained project
Change-Id: I750101fd295b7210dd7e5c490f375a3237fbc455
2016-12-14 16:28:00 +01:00
Mark Vanderwiel f3431fcd2f Replace deprecated get_secret
Use get_password 'token' instead.
Depends-On: I9c60955fe4ed444b9cd70384fa8fb7829b1f0c47

Change-Id: Ie3f1a5317aabe8e35172237dab82a036c7b88de1
Partial-Bug: #1467662
2015-06-23 11:50:33 -05:00
Mark Vanderwiel 8974221a00 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: Ie9fe1dd502ad09a9887045361bc1366cb116b5a4
2015-06-05 05:12:35 +00:00
Mark Vanderwiel 70068076be Ironic conductor requires ipmitool command
Need to install the ipmitool package for conductor. Also
no need to notify or subscribe immediate for package
updates, that just causes the service to restart several times
when the all the packages have not yet been installed.

Change-Id: Ie5d33224f71e154ac904dcb0568ab2970e1f1647
Closes-Bug: #1454770
2015-05-13 13:51:47 -05:00
Mark Vanderwiel c4f4ae5369 Use the Common endpoint bare-metal-api-bind
Make use of the bind endpoint for ironic api conf

Change-Id: I03cac92746cc4bcb5a3d1dcb594fffd3f02318ce
Closes-Bug: #1452794
2015-05-07 10:53:24 -05:00
Jenkins 25b19192a6 Merge "Revert "Use new "service" role instead of "admin""" 2015-05-01 16:29:25 +00:00
wenchma a9bfbaab9a Add neutron url attribute for ironic
Change-Id: I46f5de1bcff5735f37e75deca931f59aa3ff0c81
Closes-bug: #1450323
2015-05-01 11:27:23 +08:00
Ma Wen Cheng 0cea7f1ac6 Revert "Use new "service" role instead of "admin""
This reverts commit de410e11fb.

Closes-bug: #1450473
Change-Id: Id81eca2dca6cf418086483662cb49204c3129fce
2015-04-30 23:51:38 +08:00
Mark Vanderwiel dd82011553 Use identity_uri_transform for identiry_uri support
Remove deprecated keys and use identity_uri via the new transform
helper method.

Change-Id: I2e439b8f3d1f5a4efa0c082b8e7d88d8594a65b3
Implements: blueprint identity-uri
2015-03-26 11:51:51 -05:00
wenchma ded5cad8ee Fix some issues of ironic cookbook
* Set default value for rpc_backend
* Change from "create_schema" to "upgrade" when dbsync
* Add some attributes
* Add identity_uri configuration item
* Add spec tests

Change-Id: Ic57ff8ae9ce69c24211527ddacd23f94d1e417e9
Closes-bug: #1429245
2015-03-19 15:57:50 +08:00
wenchma 673627d9e5 Remove the temp workaround of common attributes and db creation
https://review.openstack.org/#/c/148458/ and
https://review.openstack.org/#/c/148463/
have been merged.

Change-Id: I6495b3dd0f6d3a40acbb20194f0fd50c6099f9aa
Closes-bug: #1428985
2015-03-06 16:07:01 +08:00
wenchma 591c8773d2 Add installation and configuration support for Ironic
This commit adds attributes, templates, recipes and spec files to
support the installation and configuration of Ironic.

Depends on:
  https://review.openstack.org/#/c/148458/
  https://review.openstack.org/#/c/148463/

Adds temp workaround to cover the common attributes and
create ironic database with user util Kilo branch is created.

blueprint bare-metal-enablement

Change-Id: I48202ea1ebf7621141f97778961758b73da76e27
2015-01-29 10:43:22 +08:00