Commit Graph

225 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
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 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 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 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
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
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
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
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
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 192d358148 Rename bare-metal to baremetal for Ironic
Change-Id: I55eb4401dbc1e7c8cbd098a2bafca7f414d250de
2018-09-04 15:29:48 -07:00
Seb-Solon 1b779aec83 Add: aodh support
Change-Id: Ifba4d1c4111b212f67a8a8850875b44fa4795dbb
Partial-Bug: #1779940
2018-07-04 16:06:08 -04:00
Samuel Cassiba 3bcc58e255 Change release from Pike to Queens
Change-Id: I5798a38a066ccf04c7365e4762dd5347b0a08939
2018-03-08 08:52:08 -08:00
Samuel Cassiba b2881c3a80 common refactor for Pike and Chef 13
- changed the default RDBMS to MariaDB in accordance with install docs[0]
- removed deprecated database, apt and yum cookbooks
- incorporated `database' and MySQL-specific abstractions from database
  cookbook
- implemented foodcritic and cookstyle corrections
- deprecated node.foo.bar method access for node['foo']['bar'] bracket syntax
- updated default recipe for core apt resource
- use /etc/apt/apt.conf.d on Ubuntu instead of passing the dpkg overrides as
  command line options in every cookbook

[0]: https://docs.openstack.org/install-guide/environment-sql-database.html

Implements blueprint modern-chef

Change-Id: I143e0ed0a2bdd76269fc0c402052696426d96d81
Depends-On: I00e2237cef0c9aa35f78d3ccec04a1c7b9271ce8
Depends-On: I7ee0f5eae4e79e5c70ee8de4a0094a7c34fdd18f
2018-01-11 17:42:41 +00:00
Jenkins eadaa68937 Merge "Drop unused messaging attributes" 2017-09-13 14:18:33 +00:00
Jenkins 7830eff2e2 Merge "Initial common Pike updates" 2017-09-13 14:10:50 +00:00
Jens Harbott e54ba0a245 Drop unused messaging attributes
These attributes were duplicated or are not needed anymore after the
great config refactoring.

Change-Id: I3b580ba36565861b6c78120fc8dc2718f6e2f452
Depends-On: I90f14fd1f0104ac6052349d79deaad342058c9e1
2017-09-12 12:58:21 +00:00
Jens Harbott f3389a2b8b Add support for Designate DNSaaS project
The cookbook for installing Designate is being developed at [1]
currently, it needs to be added to some base service definitions.

[1] https://github.com/cloudbau/cookbook-openstack-dns

Change-Id: I3407e698dd990661d280f25fc3de93aaa1477354
2017-09-12 09:01:01 +00:00
Samuel Cassiba ffbf83d17f Initial common Pike updates
- Bumped chefdk to 1.6.1
- Switched release to pike
- Added is_release attribute for testing, defaults to false
- Added RDO deps repo for testing pre-release packages
- Added ubuntu-cloud proposed repo for testing pre-release packages
- Switched the default linter to cookstyle
- Normalized the banner message
- Dropped pip installation method for python-openstackclient since the
  packages are fresh enough

Change-Id: I7a67ba2520b8e44efec6edd8506f96b0e0dc913b
2017-09-11 23:38:26 -07:00
Samuel Cassiba 479af11fd7 Fixes for Ocata, define socket for MySQL
- bumped chefdk to 1.5
- bumped mariadb to 1.5
- style fixes to make rubocop/foodcritic happy
- rewrote metadata.rb for readability
- removed ancient Gemfile
- removed openshift rubygems mirror since it doesn't help us

Change-Id: I950605f384405b55737af77bc4224f1e18fee8e1
2017-08-02 16:24:48 -04:00
Jens Rosenboom 6773710b30 Update OSC client version to 3.11.0
Change-Id: Id5606aa7e731bcab0b18aa0ff336c342449c1701
2017-05-23 15:19:38 +00:00
Samuel Cassiba 1e2bd7a338 Corrects rabbitmq user, yum cache cleaning
- corrects the rabbitmq 'guest' user to 'openstack' to for a more secure
  installation, as 'guest' is not secure and is deleted in other
  non-Chef deployments.
- adds update_yum_cache attribute to conditionally include the yum
  recipe, removing the hardcoded entries from the run lists. This
  prevents yum.conf from showing up on Debian-based machines.
- enforces GPG checking for RDO packages, uses correct key.

Change-Id: I89714e06eab803985ebffcdff5ff77655287c3e6
2017-04-09 18:35:44 -07:00
Jens Rosenboom baa6f22baf Switch to Ocata release
- Have Ocata as default release for master now
- switch default auth strategy to Fernet as PKI tokens have been removed
- Update OpenStackClient version
- Provide a default WSGI template that can be used from other cookbooks
- Add a fake compute_cell0 service in order to create another DB for nova

Change-Id: I8bc2eb5622b14457ef80cb70bf7a1d60c9fe9793
2017-03-10 12:27:08 +00:00
Christoph Albers 57fa9ecef7 Tempest / Integration fixes
- added needed attributes to get glance image id
- edited specs in favor of identity v3

Change-Id: I9b87834190f013191cddaeffd1547278543e0dad
2017-01-02 15:36:24 +00:00
zhangyanxian d08dcf239c Fix typo in default.rb
"automaticly" should be "automatically"

Change-Id: I098834fcfea5494f7043ce4381313c95e053179e
2016-12-19 07:47:12 +00:00
mbuege cd6fd327a3 update python-openstackclient version
- update python-openstackclient version from 2.6 to 3.4.1
- minor style changes in spec
- moved python-openstackclient version to node attribute

Change-Id: If9ffbc539ebca7de222dc25205d9f760a774412b
2016-12-12 17:03:33 +01:00
Samuel Cassiba 0edeb4594e Cookbook version bumps for Xenial
- incremented mysql to 8.1
- incremented database to 6.1
- incremented yum to 3.13
- incremented yum-epel to 1.0
- incremented poise-python to 1.5
- incremented apt to 5.0
- created dependency on build-essential for python-openstackclient
- incremented authentication API version to v3.0
- incremented ChefDK packages to 1.0

Change-Id: I57c8729e8732161ac34caa85259de8264e99c56d
Implements: blueprint newton-xenial
2016-11-18 13:14:57 -08:00
Jenkins a1e21fd72c Merge "Switch to correct Newton package locations" 2016-10-14 14:47:25 +00:00
Samuel Cassiba 4121e9b39a Switch to correct Newton package locations
- increments RDO to Newton GA, removes delorean-deps repo
- removes proposed from Ubuntu packages

Change-Id: Iad16b2595c55e50a1941db923d918b9bf5e14478
2016-10-12 10:14:16 -07:00
Jenkins b2665aa21a Merge "Add Murano service definition" 2016-10-11 21:35:00 +00:00
Samuel Cassiba e8fcddedd8 Bump RDO to September 30 build
Change-Id: I713ac44ed01f42804bd2c75e567e7961f9ac9b17
2016-09-30 12:07:46 -07:00
Damian Szeluga 663c7cba97 Add Murano service definition
Change-Id: I88fb44d80db4fb6bd4b59ad6e2a4abe6ad7e6b95
2016-09-14 13:45:41 +02:00
Samuel Cassiba 9a2c4ee365 Support for Ubuntu 16.04 and Newton
- increments Ubuntu release to 16.04
- increments release to newton for Ubuntu and CentOS
- increments apt cookbook version to 4.0
- increments mysql cookbook version to 7.2

Change-Id: I07ad79a93642d0f0c934a864fcb9bcd7b764e35f
Implements: blueprint newton-xenial
2016-09-01 04:06:52 +00:00
Jan Klare 83a9525fd0 install python-openstackclient from pip and not from package
* the packaged version of python-openstackclient for ubuntu and centos are quite
  old and we need the new version to completely switch all cookbook logic to the
  openstackclient
* this patch include the poise-python cookbook and uses its resources to install
  a python 2 environment and the python-openstackclient

Change-Id: I881075dcd11d06d9c1537d929c7626155c01a1d6
2016-08-05 11:55:43 +02:00
Jenkins 11a16623bc Merge "add telemetry-metric => gnocchi to common services" 2016-06-07 14:12:18 +00:00
Lance Albertson 1e86209d4e Fix yum repo-key attribute
The upstream RDO repo no longer keeps the repo key in the master branch and only
keeps them in each release branch. So use the release attribute and set the
repo-key properly.

Change-Id: I83b508aab4e45554dda459662d1733d54810a3dd
Signed-off-by: Lance Albertson <lance@osuosl.org>
2016-05-22 20:27:40 -07:00
Jan Klare dc5390e290 add telemetry-metric => gnocchi to common services
Change-Id: I22114b6d2d46cce561a2f292b92ff5f531cff533
2016-05-19 18:09:32 +02:00
Samuel Cassiba 9bf2da101c Split apt_components for bare metal provisioning
The openstack-ppa.list file gets generated with an extra 'trusty'
resulting in a failed convergence on bare metal nodes.

Change-Id: I22235c3eed6a9abd0371d86ea80b71e4702e9ea4
2016-04-18 08:33:34 -07:00
Samuel Cassiba 577d0e022f Bump RDO to Mitaka GA
- re-enables gpgcheck for the RDO release
- bumps to GA packages

Change-Id: I19067aad864ef565adee4bbd21da7ed5a35939ae
2016-04-12 07:52:03 -07:00
Samuel Cassiba 9f912e6d0e Adds distro-specific changes to make CI work
- Adds conditional for CentOS/RHEL and Ubuntu/Debian
- Disables gpgcheck for RDO
- Bumps release from liberty to mitaka
- Bumps RDO repo to Testing

Change-Id: I356f110ef0f80a0282e3ebea1fd7dae5ce9246e7
Depends-On: Ic3f27a48ad3ae75a514a0637c2f895ee6e6bfae2
Depends-On: I438fe85a2883029973fa2f5f8b263b7689334c8f
Depends-On: I2dbbafaf8641ece00d4181d1ea4ba93f00eed6ed
Depends-On: Iefe0cd8037c20627d326e0922476f8499b477d77
Depends-On: If8b784baadb761f1e92c9014c595361096384add
Depends-On: Ifb1411a4392d04cd9a5e867ffc95327adf4ea4ea
Depends-On: Icd75ff370f20d77f564bd6eb700704372345b0de
Depends-On: Ie4a742a2a8aaeeec2886fcc0513e654d0237997c
2016-04-07 10:12:43 -07:00
Samuel Cassiba 0855c03839 Bump RDO to March 15
Change-Id: Ic3f27a48ad3ae75a514a0637c2f895ee6e6bfae2
2016-03-17 16:17:20 -07:00
Jan Klare e6b6f92d3e added service compute_api for nova_api database creation
* in mitaka nova needs a seperate database for nova api (used in cells v2) which
  needs to be created and synced during deployment. To follow the logic used for
  all other databases, the compute_api attribute was added to common.services

Change-Id: Idf6645064a1c2f337f542b29a026969c7d35efbe
2016-03-15 15:26:50 +01:00