Commit Graph

88 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 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 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 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
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
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 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
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
caoyuan ea8cfb083b Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ibcb44125ea2752bbfc4e4b031e65c813958d4d3a
2019-04-23 19:37:31 +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
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 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
Samuel Cassiba 80706ed6e3 Add contentdir yum variable
The centos-release-qemu-ev repo package now supports $contentdir but
CentOS base has not fully caught up yet.[0]

[0] https://lists.centos.org/pipermail/centos-devel/2018-March/016542.html

Change-Id: I9e530b89092e0d4abb14750d4c181a7712c94e8c
2018-05-17 22:25:40 -07:00
Samuel Cassiba d8bbcfd1ec Update poise-python to latest stable
poise received a round of updates, so let's remove the funky workaround.

Change-Id: I657bfd5459f6973a4ae420bf9b5c87039ab1529d
2018-04-19 05:56:55 -07:00
Samuel Cassiba 37088e9af0 Add a case statement workaround for Chef 14
Change-Id: Ib618ef74ec3cbb41a638cd7b98df48721e38d82b
2018-04-11 22:08:32 -07: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 56466b285a Merge "Added etcd wrapper recipe" 2017-09-13 14:12:21 +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 65bdf0e152 Added etcd wrapper recipe
- This recipe implements a basic etcd installation for shared oslo configs.
  A wrapper recipe is needed for instantiation, as etcd is a pure library
  cookbook.

Change-Id: Id2f934a9fc408276cb0a25afc2f65ec5f5c54c15
2017-08-22 09:51:39 -04: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
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 3d06aeabbf Install openstackclient into virtualenv
There may be issues caused by updated OpenStack python libraries being
picked up by other services when we install python-openstackclient
globally. So instead install it into its own virtualenv and create a
symlink to the resulting binary.

Change-Id: I43d9baf13dda20d39d3c52faf1f2322eee4884a3
Partial-Bug: 1661708
2017-02-09 14:56:20 +01: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 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
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
Samuel Cassiba 51ac5f8b9f Style and lint fixes to support newer ChefDK
- bumps ChefDK release to 0.15.15 in bootstrap

Change-Id: I6ce4587caa3ae68ddbd3ef1a521aaf46f4840b2c
2016-07-01 18:16:19 -07: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 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 357fa7dae5 CentOS repo updates
* point to RDO trunk repo
* adds in delorean deps repo temporarily, until Mitaka packages are
  out of trunk.

Change-Id: I4d3547060ab2a5b75ee06e9e49655a6f938f270a
2016-02-22 10:03:48 -08:00
Jan Klare 1858c025b2 library cleanup and refactoring
* version bump to 13.0.0 for mitaka release
* removed suse support
* removed general endpoint method, since we should be able to always specify
  which endpoint we need
* removed fallbacks in specific_endpoint method, since this behaviour is not a
  very obvious one to the user and it should rather return an error than an
  unexpected result
* dry public, internal and admin endpoint methods
* removed obsolete private methods
* adapted method calls for admin_endpoint in libraries/cli.rb
* refactored set_endpoints_by_interface recipe to directly call address_for
  instead of address, since the recipe already checks for an existing attribute
  ..['bind_interface'] and therefore address would redirect to address_for
  anyways
* moved the nested hash order for the public, internal and admin attributes to
  to be more clear and to break all existing calls to fix them during the
  refactoring process of all cookbooks
  e.g: node['openstack']['endpoints']['internal']['identity'] is now
  node['openstack']['endpoints']['identity']['internal'] and can be moved into
  the identity cookbook. This also streamlines these endpoint attributes with
  the bind_interface and host attributes
* removed dependency on openstack-identity cookbooks by moving openrc recipe to
  opentack-identity (same for corrensponding specs and template)
* removed address method and use the address (or hostname) defined in the
  endpoints hash directly (logic to set this attribute should rather be
  done in a wrapper (with a fitting method) instead of a static and predefined
  one)
* removed set_endpoints_by_interface recipe since logic for defining the
  endpoints will be moved to wrapper cookbooks
* added helper method merge_config_options for generation of config hashes used
  in service config templates
* added template for openstack-service.conf.erb which can be used by all service
  cookbooks
* deleted all endpoints attibutes, since these are moved to the service
  cookbooks for easier dependency handling

Implements: blueprint cookbook-refactoring
Change-Id: I0547182085eed91d05384fdd7734408a839a9a2c
2016-02-05 08:38:07 +01:00
Samuel Cassiba 42214704ac Point CentOS package source of truth to mirror.centos.org
This removes the additional RDO-testing and RDO-Manager repos in
favor of mirror.centos.org

Change-Id: I89157c03fcccb8a1378b61c4cc6ffd8f59d91991
2015-10-30 07:58:37 -07:00
Samuel Cassiba 719181a2fd Add RDO testing repo for CentOS
To be consistent with the yum repos provided by the rdo-release RPM

Change-Id: Ie2c6fef1d0566173c31c1e70d94c69e63733a6ce
2015-08-10 10:34:22 -07:00
Samuel Cassiba a243c576af Add RDO-Manager yum repos
Allow for CentOS 7.x deployments using midstream repos

Adding node['openstack']['yum']['rdo_delorean_enabled'] allows
for the midstream repos to be toggled on or off. Default is off

Partial-Bug: 1467718

Change-Id: Id3f74c358c33b7647d96b17d25638cae196208af
2015-06-24 12:45:54 -07:00
Mark Vanderwiel fc217f6ce4 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: Ic0c0677de44642e0994c0b95a3c270cbd4749b40
2015-06-02 11:45:59 -05:00
Mark Vanderwiel acae85611f Fix up some files modes
Correct some source files to mode 00644

Change-Id: I58a11ce44eea995be35a65f613f9e4a0cb440b51
2015-02-06 15:16:49 -06:00
Mark Vanderwiel 0aeb4fc7ea Add global bind-interface attribute like the existing bind-host one
To make environment config easier add a bind-interface, very similar to
the existing bind-host attribuite.
Cleanup endpoint recipe to skip parent override keys.

Change-Id: Ic830a8bae71a690682ceaf876eaff40540e28b5f
Closes-Bug: #1411840
2015-02-02 16:55:10 -06:00
Imtiaz Chowdhury 987e0e1338 Making gpgcheck configurable for RDO repo
Currently, gpgcheck flag is not configurable and is always enabled by
default. For certain use cases, for example, using these cookbooks in
production where internet access is restricted, we need to disable
gpgcheck.

This commit makes the gpgcheck configurable so that users can override
it if needed.

Change-Id: I10620f2d5adc240fda6273680638d0429260b9cc
Related-Bug: #1417119
2015-02-02 06:43:18 -08:00
Elliott Davis a78ac43af2 Removed all ceph logic from this cookbook
The assumptions made in this cookbook for ceph were incorrect.
This commit removes all ceph logic from common and shifts the
burden of ceph management to the upstream ceph cookbook.

Partial-Bug: #1409943

Change-Id: Id9af0f484675992a47401d00afb81886fc4074dc
2015-01-14 19:47:52 -06:00
Ashley Penney 2a95cc4080 Ensure apt runs before packages are updated.
Previously on 12.04 this would attempt to update ubuntu-cloud-keyring
and instantly fail when ran against vagrant images that hadn't done an
apt-get update recently.

Change-Id: I65f88668d7438f60aa741f4df032bd3040fa6a2b
Closes-Bug: #1375443
2014-11-26 12:41:02 -06:00
ZHU ZHU 5b50abcdb2 Set openrc with OS_VOLUME_API_VERSION with cinder v2
As recently Nova merged commit https://review.openstack.org/#/c/124468/
which have switched to use Cinder v2 api, and cookbook will register
Cinder v2 endpoint. So openrc file also need to be updated
for cinder v2 support.

Change-Id: I3bcd3ca95d5f65c33eb5ddfda611280785412549
2014-11-14 10:53:32 -06:00
Jan Klare 794cc3d461 Added chef-vault as option to store secrets
*Added gem chef-vault to gemfile
*Added method to decrypt chef-vault items
*Added case for ['openstack']['databag_type'] = 'vault'
*Added version for ['openstack']['vault_gem_version'] = '~> 2.3'
*Moved ::Chef.log.warn for developer_mode from method 'secret' to private method
'dev_secret' to refactore and shrink the method 'secret'
*Added link to opscode chef-vault documentation

Change-Id: Icda0e288bbb920498aba856fefaf04c0f1852787
2014-11-06 15:46:34 +01:00
Mark Vanderwiel 87eb80fe47 Add sensitive flag to openrc resource
Use to ensure that sensitive resource data is not logged by the chef-client.
Need to update Foodcritic to 4.0 to handle new sensitive attribute.

Change-Id: Ibc115969278f58e8baa01fb7f20303f88aa2ded5
Closes-Bug: #1365113
2014-09-16 10:52:49 -05:00
Paul Czarkowski bea1a4083e ability to set location for openrc file
use attributes to specify location, owner, mode
of openrc file.

Change-Id: I5b79a03d30ec986ca9174728e5dc12ee7a8d96f7
2014-07-22 14:12:40 -05:00
Mark Vanderwiel 6fc8e58bab openrc search failure
The old openrc code handled when identity role was not converged yet
by looking at attributes.  Add this support back in.

Change-Id: I738c0f619b364548b5fff1f06cc48dce2c8f7e84
Closes-Bug: #1316236
2014-05-06 10:56:36 -05:00
Mark Vanderwiel e0915d16d4 Allow packages to be updatable
In order for package updates to occur, package resources need to use
the upgrade action.  This is first phase of blueprint, to get some
consistency, next phase is to allow some update control.

Change-Id: I3e313e9f9b5adb10786a7f95a53e5254dda8466b
Implements: blueprint allow-package-updates
2014-05-02 10:28:13 -05:00