Commit Graph

128 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
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
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
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
ZhijunWei 713e615822 Change openstack-dev to openstack-discuss
Change-Id: If3d2fe86ccd53fa97ebfdc1c51bb25cd9e4a6b93
2018-12-04 23:20:57 -05:00
Samuel Cassiba dc38c475e2 starting rocky development patch
Change-Id: I75d827d383f701da8650cd0e9d1f2501e22cf6a2
2018-08-03 06:20:56 -07: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 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 f397198e7b starting queens development patch
Change-Id: Id967d58537a0c98c3b65750979ef2dfc686f1960
2018-03-02 17:57:53 -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
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
Jan Klare ea0f371412
starting pike development patch
Change-Id: Ie0a45261620dbdf57e3078cbac9a85427540a45a
2017-08-17 14:18:55 +02: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
Jan Klare 08521342b1 starting ocata development patch
Change-Id: I89d2c62d5d425a2fd553cdc5b401ebd59645f755
2017-02-23 17:05:57 +01:00
Jan Klare 56bafafe35 remove super old galera dependency from metadata
* this should also fix the crazy output in most of our cookbooks during
the rspec runs

Change-Id: I720349ef413b240aff692e5f08fb5326775f1bd2
2016-12-16 16:50:35 +01:00
Jan Klare 166487878e update cookbook dependencies for next release
Change-Id: Ib256c315d5439beb8d4ec83c5cc7d7c9b182378a
2016-12-07 10:54:20 +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
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
Jan Klare e69c25ae4a initial commit for the newton development cycle
Change-Id: Icecfa28b37e518ee2b7aea41c46b7605f59a6050
2016-05-31 10:18:14 +02: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
wenchma 82b4e9b318 Update apt cookbook version
Change-Id: I4ddebafeba997ef2d4e39197f7cd2e74c9bb43c5
Closes-Bug: 1495571
2015-09-15 09:45:16 +08:00
JJ Asghar 9218fee097 Initial Liberty Updates
MetaData Changes:
- bump metadata version to 12

Other codes changes
- change juno to kilo where appropriate
- rubocop todo file updates
- removed db2 refs

Bootstrap Changes
- Updated to 0.7.0 release of the ChefDK

Change-Id: I65745eae2e430ced0c25e8f05dd490fdad840623
2015-08-28 09:43:49 -05:00
Samuel Cassiba 37d21cc47e Bump mariadb to 0.3.1
Change-Id: I60ebb75db924d0dee61fa153e7fdc53a5792e333
2015-08-03 09:23:51 -07:00
Jan Klare e7b8676b0d add support for percona-cluster as db backend
- added percona-cluster as option to the proper openstack attributes

Change-Id: I0ccdc6efbdfa3d72bdc63a49b3cd0fd1630babe1
Implements Blueprint: galera-and-percona-support
2015-07-06 10:28:24 +02:00
Mark Vanderwiel f92bb380fd Replace deprecated get_secret
Use get_password 'token' instead.

Change-Id: I9c60955fe4ed444b9cd70384fa8fb7829b1f0c47
Partial-Bug: #1467662
2015-06-23 09:00:31 -05:00
Min Min Ren 2785880a8c Add galera-mysql cluster support openstack-common
1. Add a new db service_type as 'galera'
2. Reuse compatible code for mysql to support 'galera'

Change-Id: I7de9a7eab3523d8acdf4627a571335b59be0e0ee
Implements: blueprint galera-and-percona-support
2015-06-16 20:35:11 -05:00
Mark Vanderwiel 818c927a3d Allow rabbit mq kombu ssl configuration
Add the rest of the kombu ssl configuration options.

After this patch goes in, will need to update each cookbook
that uses rabbit mq to add these to the conf file.

Change-Id: Ie89f48b4a471d48df88f185a1012da9eb63071bd
Partial-Bug: 1464706
2015-06-15 13:59:13 -05:00
Jan Klare 9757ffdd46 Revert "update the apt cookbook version".
The update of the apt cookbook version currently breaks the gates for opentstack-chef-repo and openstack-block-storage, because of a dependency on the ceph cookbook, which is incompatible in its currently released version with the new apt cookbook. The fix was committed in master (4883a0b092) and we can do our apt update as soon, as this is released to the supermarket.

This reverts commit f0e7724f37.

Change-Id: Ib36b58e7e25c4c24bb480fc9412d909c167f5fdd
2015-06-09 08:32:57 +00:00
Jan Klare f0e7724f37 update the apt cookbook version
use new apt cookbook version ~> 2.7.0, since it supports debian 8 and
should work fine with everything else

Change-Id: Icc0b9973995b9fe945cd347d9f065d6a90a4be3d
2015-06-05 15:46:22 +02: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 348aaf4033 Move role and recipe include methods to Common
These small wrappers are now needed by other cookbooks. They
provide a easy way to create a clean spec test.
Will put these into the Common openstack library module namespace
for easy use across the cookbooks.

Added common role defintion for compute worker.  Eventually all
the role definitions should be moved here.
Added new spec for these wrappers.

Change-Id: If548a9d63a42799e1401b18540878eca5ba2a0e1
Related-Bug: #1448255
2015-04-28 10:51:42 -05:00
Mark Vanderwiel 9d549d2dd2 Update yum to 3.5.4
Update yum version to match client cookbook and test repo

Change-Id: I2acc9be7e0c43a45b588a5c5070def86633f3a3c
2015-04-22 15:41:33 -05:00
Wei Hu 22c46294d6 Add rabbitmq max_retries and retry_interval attr
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: I6bba768f4cf0c61b92fbc5d682b60f094afb7180
Partial-bug: #1439968
2015-04-17 10:03:16 +08:00
Mark Vanderwiel 71ac7945ae Create bind endpoints for dashboard
These will allow greater control and consistency with configuring
endpoint across openstack.

Change-Id: If124a39ed1892025ee58b19544edc351825ee5a6
Partial-Bug: #1430422
2015-04-02 15:23:14 +00:00
Yi Ming Yin 79b561353f Add mariadb database support to openstack-common
1. Add a new db.service_type as 'mariadb'
2. Reuse compatible code for mysql to support mariadb
3. Set mariadb as default database type for RHEL family

Change-Id: Ib537dc921b6e9d05cb79ef3e95dac558a7180816
blueprint: mariadb-support
2015-03-25 22:03:34 +08:00
Mark Vanderwiel ea8dfaa401 Initial kilo updates
MetaData changes
- bump metadata versions to 11

Gemfile changes
- bump robocop to 0.29.1
- bump chef to 11.18.6  close to 12 but not quite (need infra changes for 12)
- bump berks to 3.2.1 to get fix for running twice (destination already exists)

Rubocop changes
- add .robucop_todo.yml for future cleanup
    - rubocop --auto-gen-config and add an inherit_from: .rubocop_todo.yml in your .rubocop.yml
- add .bundle/**/* to .rubocop.yml
- add .cookbooks/**/* to robocop.yml
- fixup berks-cookbooks/** with /**/*

Changelog changes
- delete Changelog.rb

Other codes changes
- change juno to kilo where appropriate
- cleanup any obvious old deprecated code

Change-Id: I146aa7f7ba4024115c1297103e176a72336fbe5d
Partial-Bug: #1426424
2015-03-04 08:30:52 -06:00
Mark Vanderwiel 09e8cc9ad7 Add compute metadata api to common endpoints
Nova metadata api endpoint was missing from common endpoints.
This patch will be follow by one for compute and network to
make use of these new endpoint.

Change-Id: Ieabff853c3a66f2dfaf839ebc7abf9a90252f21b
Partial-Bug: #1425633
2015-02-25 14:39:24 -06:00
Christopher M Luciano e851318436 Switch back to pessimistic version constraint
Change-Id: Ie7038d8d971cedc0bc487c9b9373b444b66ed66d
Partial-Bug: #1425192
2015-02-24 15:30:40 -05:00
Mark Vanderwiel 89c99e47be MySql cookbook ver 6 changes
mysql cookbook is now provider driver, and no longer has default
attributes, like server_root_password.
For the password, now always using the Common password methods.
Therefore the ['openstack']['db']['root_user_use_databag'] attribute
was removed, it's now the default path.

For the other mysql attributes we used, these were moved into the
ops-database cookbook.  See that patch for more info.

This patch requires updates to the database and mysql-chef-gem cookbooks.

Change-Id: I817030cd7fb56cb025e1a8e21dc2b956b0ad7911
Implements: blueprint trusty-juno
2015-02-13 08:11:49 -06:00
Chen Zhiwei d99aacda7c Add a new custom matcher render_config_file to test ini file content
After this, you can use below way to test ini file content:
render_config_file(file).with_section_content(section, content)

Change-Id: Iaed80a3fc61db02324fb2c8166b7032fd1823f60
2014-12-17 18:06:29 +08:00