Commit Graph

582 Commits

Author SHA1 Message Date
Ghanshyam Mann fb7c035bf3 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: I07e16dd10769a13ae587b94f1387efacda01fdb2
2024-02-17 20:52:17 -08:00
Lance Albertson cf9da3b474 Use vault repo for RHEL 8
Train has been archived to vault for RHEL 8 and this breaks CI currently.

Change-Id: Ia77026617f993169e46ef76ced3468b5e4fa8bfc
Signed-off-by: Lance Albertson <lance@osuosl.org>
2022-03-17 11:20:58 -07:00
Lance Albertson df9900d25b CentOS 8 support
- Add yum-centos cookbook to deps
  - Enable PowerTools and RabbitMQ repositories on EL8
- Update various packages for EL8

Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/814234
Change-Id: Ife3165204d9ffee132a0daacd4a6f30c7d31378b
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-22 09:46:15 -07:00
Lance Albertson d50c4ad40d Chef 17 support
- Require Chef >= 16.0
- Enable unified_mode
- Update to latest upstream cookbooks for etcd, mariadb and memcached
- Update copyright years

Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/813950
Change-Id: Ib410ed28388725751a6295c58ce1f5e89c529b28
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-13 23:28:32 -07:00
Lance Albertson f686660393 Exclude EPEL packages that conflict with RDO Train
The following packages are too new for RDO Train:

- python2-qpid-proton
- python2-pyngus
- qpid-proton-c

Depends-On: https://review.opendev.org/813718
Change-Id: I977a688022a942b96f4c820fa2be2c932016176c
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-12 18:08:08 -07:00
Lance Albertson cb78508489 Update to Chef Workstation 21.2.303
Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/779389
Change-Id: I51ecdc5afa9592a334b6b0b8f839eb89ee010a12
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-03-08 15:57:53 -08:00
Zuul f888e048e7 Merge "Add load-balancer service" 2020-11-20 10:15:24 +00:00
Jens Harbott e009657be1 Add load-balancer service
In preparation for an openstack-load-balancer cookbook add the service
so that we can create a database, message queues and endpoints.

Change-Id: I4e67ec649124a16470c72bc831bd2825b3741449
2020-11-19 17:36:52 +00:00
Lance Albertson 8d07e9acee Cookstyle 6.19.5 fixes
Also remove unused database resources that somehow got imported in
https://review.opendev.org/701027.

Change-Id: I5241e0f1eb3bf44158bc64019a3880d83a6d4bdc
Depends-On: https://review.opendev.org/756168
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 17:02:11 -07:00
Lance Albertson 4882fb05bb Workaround issue with >= 16.5 when requiring `addressable/uri`
A change made in 16.5 causes an issue when trying to require `addressable/uri`.
This has been filed upstream with this issue [1]. As a workaround, it seems
using `autoload` fixes the problem.

[1] https://github.com/chef/chef/issues/10452

Change-Id: Iae337a8ff1784c46e8171fc54eb00ef28f11561a
Depends-On: https://review.opendev.org/753102
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-09-21 10:51:14 -07:00
Lance Albertson 3b02de3c8b Create /etc/bash_completion.d/ directory
On some docker images, /etc/bash_completion.d/ doesn't exist so we need to
ensure it does. This is specifically useful for kitchen-dokken.

Change-Id: Ie7227ae1bc794a75fd0200cef0b4b002d2ff6986
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-09-14 09:02:00 -07:00
Henrique Santos 455790e1e9 Adds provides method to define name of resources
In Chef Infra Client 16.2, resources have to be named using the provides
method. The resource_name method has not been changed in order to be
compatible with Chef Infra Client <16.2.

Also fix URI.encode and URI.decode deprecations.

Update etcd depends to ~> 6.0 to fix Chef 16 deprecation warnings.

Depends-On: https://review.opendev.org/747503
Change-Id: I24be89a3214207bac2df9eb360124871e0d8242f
Closes-Bug: #1886985
Signed-off-by: Henrique Santos <hfigueiredosantos@tecnico.ulisboa.pt>
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-08-27 16:50:23 -07:00
Lance Albertson a45cea15d7 Updates for Train
Added:
- Placement service

Changed:
- Update release to train
- Cookstyle fixes
- Update to mariadb ~> 4.0

Removed:
- Unused rubocop rules

Fixed:
- ChefSpec for wrapper now correctly works with node.role?

Depends-On: https://review.opendev.org/731849
Change-Id: I3e809350541e9c7beab311e5b3e768df1612d9f5
2020-05-29 17:29:10 -07:00
Lance Albertson 7a370737ba Bump to memcached ~> 6.0
This pulls in fixes needed to address problems with setting the lock_dir
in apache vhosts on ubuntu hosts.

Change-Id: Iaab65fe46e517a54e193b8363c2152fb80806a25
2020-04-07 15:14:48 -07:00
Lance Albertson 07627b9fc7 Update memcached cookbook to ~> 5.1
Change-Id: I1d0b1df7af88fbaff42995f54eb0b51bbc85a4af
2020-03-31 10:28:59 +00:00
Lance Albertson 849de5efdb Remove deprecated mysql attributes
Depends-On: https://review.opendev.org/716075
Change-Id: Ic6750ae4334315079dd51fccf54f595f278e79bc
2020-03-30 13:54:21 -07:00
Lance Albertson abab7d0ecb Stein fixes
- Switch to Stein release
- Cookstyle fixes
- Update cookbook etcd to ~> 5.6
- Update README
- Add myself to author list and OSU Copyright
- Properly fix completions recipe and ensure it works
- Create and start the etcd service in the etcd recipe
- Update delivery configuration to exclude integration cookbooks
- Refactor and update RenderConfigFileMatcher to work with newer
  ChefSpec. This fixes output which was passing but showing error
  messages.

Depends-On: https://review.opendev.org/701027
Change-Id: Iba3eeabe85ab9303147e43eeb550212a46d190f3
2020-03-19 10:52:29 -07:00
Lance Albertson ea8684d2cf Switch to using mariadb user and database resources
This updates the mariadb cookbook dependency which pulls in mariadb_user
and mariadb_database resources that do not require the mysql2 gem. In
addition, this removes all of the imported mysql libraries and resources.

Other fixes include:
- Rename openstack_common_database resource to openstack_database
- Convert LWRP to a custom resource

Change-Id: I723740b53fe772cf17e65acfb62d5f82e107b7ea
2020-02-27 15:37:45 -08:00
Lance Albertson 51716cb6ff Set Berksfile to use ruby solver
This provides much better debugging output.

Depends-On: https://review.opendev.org/702772
Change-Id: I32f254e78817a06ac061cfaaf2ab40559bee9a46
2020-01-30 13:09:31 -08:00
Lance Albertson 4000e8aa96 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.

Some additional fixes include:
- Add default['openstack']['common']['search_count_max'] attribute to allow speed
  ups during testing.
- Improved a few tests
- Adjusted some formatting
- Remove deprecated ChefSpec::Coverage.start function
- Show warnings
- Use major version for redhat platform
- Update to Ubuntu 18.04

Speed was improved from 4 minutes 16 seconds to 41.98 seconds.

Change-Id: Icb9147036a01f92ec48a24c692dd022258e294c0
2020-01-06 11:34:18 -08:00
Andreas Jaeger d5e2d175cd Fix README.rst formatting
Add a line between tables to make "pandoc -f rst README.rst" format it
correctly. This should allow correct display on opendev.org's git
interface.

Change-Id: Ic5ca4ff1b1bfd6c7765bf788e1600deb5ec2bfa3
2019-12-05 15:23:42 +01:00
Lance Albertson 8a1a644f11 Properly convert README to rst
This should fix the rendering on opendev.org.

Change-Id: I3d6250a42ca37e88d8139fa68692672a505ad07b
2019-12-04 10:53:36 -08:00
Zuul 067f60dcfb Merge "Updates for rocky" 2019-12-03 14:26:39 +00:00
inspurericzhang 2569ac0f34 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: If732a5e840a7080691097e429e692a18f5286db6
2019-12-03 12:23:53 +00:00
Zuul eb503b66ad Merge "Use python3 packages on Ubuntu" 2019-11-25 14:58:42 +00:00
Jens Harbott d0c2aa8fba 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: I9cacde567f1d390311ac425649d6f6843abf929b
2019-11-21 10:47:19 +00:00
Manuel Torrinha cace34613e Fixes issues with `rabbit_transport_url` method
When using rabbit_transport_url in a multi node environment, the address
used is the bind_address if we do not use a mq cluster, where it should
be the rabbit server endpoint hostname, if not we can end up with some
transport_url configurations as rabbit://<...>@0.0.0.0:<...>, if the
rabbit server is configured to listen on all interfaces.

Change-Id: I617f54030ca3610638e6fd1bd3215dc2e7b23841
Signed-off-by: Manuel Torrinha <manuel.torrinha@tecnico.ulisboa.pt>
2019-10-23 17:29:45 +01:00
Zuul e51294e5a2 Merge "Clean up URI handling" 2019-07-30 13:06:07 +00:00
Jens Harbott 29e07f27b2 Clean up URI handling
The two functions auth_uri_transform() and identity_uri_transform()
implicitly assume that the identity endpoint has no path component other
than 'v2.0'. This blocks modern deployment designs, so drop these
functions.

Probably will need some dependencies to clean up consumers of these
functions.

Change-Id: I711ff0c0f8d35c581d2a419debe50425ec0d51c2
2019-07-17 08:18:17 +00:00
Lance Albertson 782bfbfe64 Revert "Add contentdir yum variable"
This is no longer needed as this file seems to be created on a freshly
installed system.

This reverts commit 80706ed6e3.

Change-Id: I8d518b2a940333a76e21b22929272e60ed493dbf
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-07-10 17:39:38 -07:00
Lance Albertson 16441178af Drop poise-python in favor of directly installing python packages
The poise-python cookbook is no longer maintained by the upstream maintainer and
is causing lots of issues for the testing pipeline. Originally we needed this to
install a newer openstack-client via pip, but we no longer do that.

The one exception is in the integration cookbook which I'll be pushing a change
for that as well.

In order to do this, we need to include EPEL on RHEL which doesn't seem to have
any current dependency issues so I think it's safe to bring back.

Depends-On: https://review.opendev.org/665493
Change-Id: Ic8ddf736193a6a7cea5372f2fd09e2def3634333
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-06-15 17:14:29 -07:00
Zuul bf04e80682 Merge "Add recipe to create bash completions for OSC" 2019-05-06 15:05:05 +00:00
Zuul a7c0251221 Merge "Drop admin endpoints" 2019-05-06 15:05:04 +00:00
Jens Harbott 9170a08c7c Add recipe to create bash completions for OSC
The new recipe "completions" can be executed in order to create a file
with command completions for the "openstack" command in bash. We want
this to be dynamic because the set of available commands depends on the
set of python plugins installed on the host.

Change-Id: Ib6549c00596f6560dab74491309b6b580ae7b312
2019-05-06 08:28:31 +00:00
Jens Harbott 6fd3db1717 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 drop the attribute for setting an auth version, as keystone only
supports v3 now.

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

Depends-On: https://review.opendev.org/656289
Depends-On: https://review.opendev.org/656514
Depends-On: https://review.opendev.org/656518
Change-Id: Id8fa969af80bcb1cb6f3ce743b1861f26c36523f
2019-04-30 13:55:33 +00:00
caoyuan ea8cfb083b Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ibcb44125ea2752bbfc4e4b031e65c813958d4d3a
2019-04-23 19:37:31 +08:00
OpenDev Sysadmins 172e253225 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:31:10 +00:00
Zuul ed454343cd Merge "Replace openstack.org git:// URLs with https://" 2019-03-25 13:44:16 +00:00
Ian Wienand 0d5baf521b Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: Id330e14d38196d45a35150d5148a8afebe2b5798
2019-03-24 20:33:22 +00:00
Jens Harbott 860084ffdf Update default release to rocky
The master branch is currently targeting to deploy rocky, so change the
default release name accordingly.

Change-Id: I11d7bb06b30b70d64aec7418280f62013cb5b979
2019-03-21 11:43:30 +00:00
Zuul f5e211b62b Merge "Pin setuptools and wheels packages" 2019-01-08 15:36:23 +00:00
Samuel Cassiba 7c31fb629b 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.

In order to pass Zuul's one-way CRD requirements[2], both hyphens and
underscores must exist for a compatibility period.

[1]: https://docs.chef.io/ruby.html#use-of-hyphens
[2]: http://lists.openstack.org/pipermail/openstack-dev/2015-February/056515.html

Change-Id: Ic2b6d8f1cdf719791faaebdbd7e29e789eb3f31c
2018-12-15 00:16:38 -08:00
Samuel Cassiba 244d48d209 Pin setuptools and wheels packages
In order to maintain consistency for pip versions, align pip, wheels,
and setuptools. Use OSA as a basis for consistency between deploy
projects.

Change-Id: I573bd84e1f15b6e9bda8ebb1d8e12fa66970757a
2018-12-13 23:50:51 -08:00
ZhijunWei 713e615822 Change openstack-dev to openstack-discuss
Change-Id: If3d2fe86ccd53fa97ebfdc1c51bb25cd9e4a6b93
2018-12-04 23:20:57 -05:00
Samuel Cassiba 97af7feec5 Add workaround to pin pip to 18.0
The default recipe does not work with the latest version of pip. The
workaround is to override to 18.0

Change-Id: If245c3c51930beba151ed8a42cec15131ea28098
2018-10-15 12:34:34 +00:00
Samuel Cassiba 192d358148 Rename bare-metal to baremetal for Ironic
Change-Id: I55eb4401dbc1e7c8cbd098a2bafca7f414d250de
2018-09-04 15:29:48 -07:00
Samuel Cassiba baae0be8b8 Rename openstack-chef-repo references to openstack-chef
Change-Id: I921d5f7d6de40bdd3b692654a22ae04c67b0ab87
2018-08-06 21:49:17 -07:00
Samuel Cassiba dc38c475e2 starting rocky development patch
Change-Id: I75d827d383f701da8650cd0e9d1f2501e22cf6a2
2018-08-03 06:20:56 -07:00
Zuul cac64d6281 Merge "Add: aodh support" 2018-07-20 19:49:51 +00:00
Samuel Cassiba 34c61367ae Increment etcd to 5.5
- etcd does not take any arguments. the default is create.
- remove use_inline_resources in preparation for custom resources

Change-Id: Ic9c98978587cf81bfd430bd5b712cf537c3fb9a0
Depends-On: I161af1074cd17f2e3d2d2cf0b37a0c5fa1015fd3
2018-07-16 15:17:21 -07:00