Commit Graph

41 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 61e5ab5421 Updates for Train
Changed:
- Update release to train
- Update to apache2 ~> 8.1

Change-Id: I1b83fcc4dade8ef01cf76c2ffa02c6fba087b97a
Depends-On: https://review.opendev.org/731859
Depends-On: https://review.opendev.org/731860
Depends-On: https://review.opendev.org/731861
2020-06-09 09:36:46 -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 00ed47e742 Improve ChefSpec test speed by enabling caching
This updates all references of let(:chef_run) to cached(:chef_run) to
speed up tests. By doing this, we have to create a new cached(:chef_run)
block whenever we need to adjust node attributes for testing.

Speed was improved from 42.29 seconds to 15.14 seconds

Change-Id: I4984b72e2b95028d4ee25e4a410e9a2dea364325
2020-01-06 14:36:34 -08:00
Lance Albertson 7ee0456dac Use python3 packages on Ubuntu
Python2.7 is going EOL soon, let us deploy python3 for Rocky from the
start, so we avoid having to switch later.

Change-Id: I6c17195b5bbf06674adfe3380481d00b22446970
2019-11-25 20:30:27 -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
Jenkins 2e36ff2829 Merge "Allow oslo rabbit heartbeat configuration" 2015-06-22 17:24:25 +00:00
Mark Vanderwiel 34d60dbc2c Allow rabbit mq kombu ssl configuration
Add the rest of the kombu ssl configuration options.

Change-Id: I3196cbfaf25c8647974afddc6f2180257c2a0c89
Partial-Bug: 1464706
2015-06-17 08:36:27 -05:00
wenchma e115ab2d78 Add rabbitmq max_retries and retry_interval in ironic 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: I43c682784d5721a09546937b9e587d9e67478883
Partial-Bug: #1439968
2015-06-17 03:12:56 +00:00
Mark Vanderwiel 39f88a3e48 Allow oslo rabbit heartbeat configuration
In order to allow components to better handle and respond to mq failures,
oslo has some heartbeat options that are useful.

Change-Id: Ibe089a1d2e298f703d3cc6c952e475f5c1990880
Partial-Bug: #1462438
2015-06-15 03:06:38 +00: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
wenchma 15d607a0cb Update the deprecated group/name to Kilo release
For Kilo release, there are many deprecated group/name in conf files of openstack,
so we need to change the deprecated group/name to new group/name.

blueprint conf-section-update-for-kilo
Closes-bug: #1436170

Change-Id: If3f1df23fc64555a26e9d467c8e4f189a5e9442e
2015-05-15 02:45:31 +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
Jenkins 8241c41e7c Merge "Use the Common endpoint bare-metal-api-bind" 2015-05-13 15:12:52 +00:00
Mark Vanderwiel a661d7729e Add attributes for workers
Allow the workers for ironic to be configured.

Change-Id: Id730fcb9abfd35ec7eecdcf6d90d4cea31dd2ebc
Closes-Bug: #1452854
2015-05-07 14:00:26 -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 8d3f085f46 move from bundler to chefdk
- deprecated Gemfile
- updated TESTING and README
- updated Rakefile to use chef exec instead of bundle exec
- replaced Runner by SoloRunner in specs

Change-Id: I73911c8d407ca25d32ed8294410a4a5cbe4cd392
2015-04-29 13:56:30 -05:00
wenchma a515f81feb Add tftp configuration for ironic
Expose the tftp configuration to support tftp, disable by default.

Change-Id: I9175e420a3def4cf10e95701c235bbae999b6505
Closes-bug: #1446972
2015-04-27 15:38:42 +08:00
Mark Vanderwiel a2245c593a Move to rhel 7.1
rhel 7.0 is not EUS/LTS, need to switch to 7.1.

Change-Id: Ia4fb2740afb1c56c71a14147663fbefc15dc6968
Related-Bug: #1438878
2015-04-24 03:00:29 +00:00
wenchma 511039f668 Add missing shellinabox package which enables ironic node console
Change-Id: Ib8ed8b0227ba2173cd1650bb3564163a00913b4d
Closes-bug: #1446446
2015-04-21 11:58:37 +08:00
wenchma 5cc49f6b91 Correct the wrong configuration about glance_protocol
Change-Id: If736210aaac0436119ac6c4ea880d056f086090c
Closes-bug: #1444892
2015-04-20 10:04:43 +08:00
Jenkins 7b46a09d8a Merge "Use identity_uri_transform for identiry_uri support" 2015-04-18 03:29:12 +00: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 50573f1d1a Enable kombu_ssl_version configuration for Rabbitmq SSL
Change-Id: I73a8bcf331a72007bb5f27bd166ea97eebd58eeb
Closes-bug: #1433405
2015-03-24 17:59:51 +08: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 70b47d394d Add ironic common package for debain platform family
Add irconic-common to the ubuntu common package list
in default attributes.

By the way, correct connection url that is messed up .

Change-Id: I658670681d4a2f7f7ad5f584b9c1c24448da7384
Closes-bug: #1428926
Closes-bug: #1429245
2015-03-09 10:00:24 +08:00
Mark Vanderwiel e08c83c2e9 Initial kilo updates
* minor cleanup to spec for rubocop

Change-Id: I7406b7ac8d709e8de3c252467e1ea37e107b94e0
Partial-Bug: #1426424
2015-03-04 11:18:37 -06: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
wenchma 001ae7fe6d Initial basic cookbook files
This is the first commit to setup basic cookbook files for
cookbook-openstack-bare-metal.
This cookbook begins with Kilo release.

Change-Id: I4a59357eb9e13912d97a195c0d2494d4f17aad11
2015-01-16 00:16:58 +08:00