Commit Graph

21 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
Roger Luethi ea0365d79a Make configuration files more readable
In order to make OpenStack configuration files written by Chef more
readable, this patch introduces a blank line before every section
heading.

Change-Id: Ib44e17cbba512c51c0098177d2dab1a91802b4d3
2017-11-02 08:51:18 +01: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
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 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
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
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
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
Mark Vanderwiel 7697c97231 Fix logging.conf: No section: 'logger_'
Caused by trailing comma on keys= line

Change-Id: Ie0a87642acbeb2a019f462889e8f8de84816377e
Closes-Bug: #1365677
2014-09-23 09:54:06 -05:00
Mark Vanderwiel 50d11569ad Allow logging.conf to be configured via attributes
deprecated the ['logging']['ignore']
Allow custom logger, handler and formatter sections

Change-Id: Icda718b18aecc0f6caefe6fd56599a720b24f4d0
Implements: blueprint allow-custom-logging-handlers
2014-07-23 12:27:44 -05:00
Mark Vanderwiel 9c493ca96c Move openrc to Common from Compute
Since there are user cases for having an openrc created for
other uses besides Compute, it makes sense to move the openrc
recipe logic into Common to allow it to be used as needed with
any project.
- Added new recipe/template for openrc
- Added tests
- Will create patches to remove openrc from Compute and to add it
to the all in one environment.

Change-Id: I2ca2280ef92d78bcf3e8a7d85eb91c9565413e17
Implements: blueprint moveopenrc
2014-04-29 10:19:29 -05:00
Federico Gimenez Nieto a2a5a3c2d8 Reverts ceph.client.keyring.erb template
This template is used in the block-storage and image cookbooks

Change-Id: I038a985e4b3c77d552a7c885671754597154b05c
Closes-Bug: #1304421
2014-04-08 15:27:03 +02:00
Federico Gimenez Nieto a69421e1c4 Added missing tests and checked existing ones
Some of the tests have been modified to set the implied
attributes to known values before verifying the
expectations. The ceph.client.keyring.erb template has
been deleted, any recipe was using it.

Change-Id: Ic1e5c67015290f677628d2705474d192d1d2c6dc
Closes-Bug: #1300774
2014-04-02 21:25:17 +02:00
Stephan Renatus 104136bed7 Add ceph_client recipe
To use RBD as a block-storage backend, both the compute workers and the
cinder-api service need to be able to talk to the Ceph cluster.

Nova-compute makes use of the `rbd` CLI tool, cinder-api and libvirt use
librbd's Python binding.  Therefore, it might make sense to have this
"common" recipe provide the necessary infrastructure to a) reach the
ceph cluster and b) install ceph packages if need be.

Besides block storage, RBD can also be used for storing images, so
that's another reason to put this into openstack-common.

This commit also introduces a template, "ceph.client.keyring.erb", to
allow the creation of client keys from other recipes in a DRY way:

    template '/etc/ceph/client.cinder.keyring' do
      template 'ceph.client.keyring.erb'
      cookbook 'openstack-common'
      owner node['openstack']['block-storage']['user']
      group node['openstack']['block-storage']['group']
      mode '600'
      variables(
        name: rbd_user,
        key: rbd_key
      )
    end

A LWRP for this would be an improvement, but this should do for now.

Implements: blueprint rbd-for-block-storage

Change-Id: Icd046830c9542bd71fa3a1857c1f4d1bb3c41cec
2014-02-12 09:29:25 +01:00
gengjh 9a2948a924 Support neutron configuration
After we have havana branch, I search and replace all the quantum with
neturon to support neutron configuraton.
The related patch on cookbook-openstack-network is:
https://review.openstack.org/#/c/58217/

Implemented: blueprint neutron-support

Change-Id: I0aa81b661eaa7d305d7a2645e349c893b3c849f4
2013-12-12 17:00:07 +08:00
Matt Ray 1ab483c0eb Add support for openstack-common::sysctl
There are a number of sysctl settings in the OpenStack documentation that are
not managed by the cookbooks. This approach will iterate over any attributes
added to the node['openstack']['sysctl'] hash and write them out to
/etc/sysctl.d/60-openstack.conf.

The README.md had the recipe description within the Libraries section, separated
into new Recipes section.

Change-Id: Ic32184b78a0bcf4c3e704c7dcd1e9d009b1d95c6
2013-10-29 16:07:31 -05:00
John Tran 657119e465 Add quantum support in logger
Change-Id: I8339758cdc4d716e92c015fdd5e5fcb44dd74494
2013-08-01 01:43:45 +00:00
John Tran 8897890b51 refactored all services to send to local0 non-debug and local1 for debug. the services are split according to process name on the rsyslog server 2013-03-18 17:42:16 +00:00
John Tran 74bae5a77a some formatting adjustments adding square brackets,
modname.funcname
2013-03-14 12:19:51 +00:00
John Tran 14d1ae367d added loggers defined in default nova logger.conf which removes some logging cruft. modified syslog messages to supress timestamp since rsyslog already does that 2013-03-14 11:50:10 +00:00
John Tran b8991e5310 added universal logging.conf for syslog config 2013-03-13 04:54:47 +00:00