Commit Graph

58 Commits

Author SHA1 Message Date
Ghanshyam Mann ea238dc447 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: Ie74b00de70c5ce8180b1d6b06394572ef8025f34
2024-02-19 16:52:22 +00:00
Lance Albertson f04c63bd47 CentOS 8 support
- Update package names
- Migrate to using apache2_mod_wsgi resource and require apache2 ~> 8.6
- Update ChefSpec

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/815147
Change-Id: Iecf9c2a68d3c246412d2a09a7ac0888dd406c268
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-22 16:54:24 -07:00
Lance Albertson 21424d8868 Chef 17 support
- Remove bind from Berksfile
- Update copyright years
- Require Chef >= 16.0

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/814051
Change-Id: If07c6d8973bbba605756938f62d351cc323edd7b
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 12:56:13 -07:00
Lance Albertson 68ab6acf42 Updates for Train
Changed:
- Update release to train
- Update to apache2 ~> 8.1

Fixed:
- ChefSpec

Removed:
- Unused rubocop rules

Change-Id: Iea9ced8eee44bf351b803b5171196c511ab572f5
Depends-On: https://review.opendev.org/731859
2020-06-09 10:19:24 -07:00
Lance Albertson dbb2758ddd Stein fixes
- Cookstyle fixes
- Refactor Berksfile to use groups so we can exclude integration testing
  cookbooks
- Update documentation
- Cleanup line wraps
- Enable sensitive resources for the template[/etc/aodh/aodh.conf],
  template[/etc/gnocchi/gnocchi.conf] and
  template[/etc/ceilometer/ceilometer.conf] to resources improve
  security.
- Update delivery configuration to exclude integration cookbooks
- Fix ChefSpec output.
- Add missing ChefSpec tests
- Switch package installations to send packages as arrays instead of individual
  package resources. This generally speeds up chef runs.
- Cleanup array syntax using %w() instead of []

Depends-On: https://review.opendev.org/701027
Depends-On: https://review.opendev.org/706101
Depends-On: https://review.opendev.org/706151
Change-Id: I73e3c3dce64798a4d6ba5c94cc45dfabc4d2d0ff
2020-03-19 13:00:31 -07:00
Lance Albertson 111d3621a9 Update to apache2 ~> 8.0 cookbook
This brings us up to date with the latest apache2 cookbook which
included a major refactor in 6.0.0 removing all of the definitions and
recipe with proper resources. Instead of using the apache2_default_site
resource, directly use a template and then enable the config file using
the apache2_site resource. This gives us the most flexibility.

Additional fixes:
- Install mod_wsgi as a package on RHEL since there is no built-in
  resource for it.
- Remove hack for restarting apache.
- Convert web_app to template and subscribe to restarting apache.
- Remove resources to restore SELinux contexts since this taken care of
  by Chef now automatically.
- Don't set SELinux to permissive on RHEL (I tested this works properly
  with it set to enforcing).
- Remove collector recipe as this service has been deprecated upstream.
- Add openstack-ceilometer-notification package for RHEL in
  agent_notification_packages as it was missing.
- Fix gnocchi-api_wsgi_and aodh-api_wsgi_file file on RHEL
- Remove openstack-aodh package in aodh_packages for RHEL as it does not
  exist
- Clean up arrays in attributes using %w(foo) instead of ['foo']
- Set group for upgrade scripts so it can read files properly on RHEL
- Add missing ChefSpec tests for aodh
- Include additional cookbooks in Berksfile required for CI

Depends-On: https://review.opendev.org/702772
Depends-On: https://review.opendev.org/701824
Change-Id: Ie7e6d792a764314775c40d4489cfba05d5c483ce
2020-01-30 09:31:59 -08:00
Lance Albertson 59189b5bed 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: If94bd0673690681837f25d76fa28139406945e71
2019-12-06 11:31:16 -08:00
ZhijunWei a5bbccbe5c Change openstack-dev to openstack-discuss
Change-Id: Ie183fcc043510c08754faa3bff82e14613250be1
2018-12-04 23:21:08 -05:00
Samuel Cassiba 13902fe451 starting rocky development patch
Change-Id: Ie7c681548a902ecc050e204e873188eb547a281e
2018-08-03 06:42:11 -07:00
Samuel Cassiba e539d17867 starting queens development patch and use git.openstack.org
* use git.openstack.org instead of github for berks dependency
resolution

Depends-On: https://review.openstack.org/549343
Depends-On: https://review.openstack.org/549345
Depends-On: https://review.openstack.org/549346
Depends-On: https://review.openstack.org/549348
Change-Id: I55e356868887afde6493447c91d5f573bcba096c
2018-03-06 12:24:53 -08:00
Samuel Cassiba b1c74d581e telemetry refactor for Pike and Chef 13
- implemented foodcritic and cookstyle corrections
- deprecated node.foo.bar method access for node['foo']['bar'] bracket syntax
- moved package_overrides to common cookbook

Implements blueprint modern-chef

Change-Id: I7471f1ca3b2348d76e1fd502f335047053459ff4
2017-12-10 11:38:02 -08:00
Seb-Solon 2e812eb316 Replace ceilometer-dbsync by ceilometer-upgrade
ceilometer-dbsync is removed in pike release
see : https://docs.openstack.org/releasenotes/ceilometer/en_GB/ocata.html

Change-Id: I2d2407e4b0deb38e8fa410c9e96e2d16e69964e3
Closes-Bug: #1727329
2017-10-26 09:19:43 -04:00
Jan Klare 516a5e7a62
starting pike development patch
Change-Id: I3db326b33dcc3f2149eb5506582683011f2345e5
2017-08-17 14:19:59 +02:00
Samuel Cassiba 76ee6952af Style and lint fixes for chefdk, deprecated Gemfile
- Style and lint fixes for newer chefdk
- Removed ancient Gemfile
- Rewrote metadata.rb for readability

Change-Id: Iba9ba7110dfde7635edc6706ecbbafbdbb161002
2017-08-10 17:50:31 -04:00
Jan Klare 30b8f35848 starting ocata development patch
Change-Id: I20539fad7a02aafea734719dc90b757bc5c6bde6
2017-02-23 17:07:20 +01:00
Christoph Albers b33c0ca574 Ceilometer-api / Gnocchi-api WSGI refactor
- now using wsgi apps for both apis
- bumped gnocchi package version due to python-openssl bugs

Change-Id: I63636ca8c08660f44433e701c55e1e0e7db5465f
2016-12-09 10:01:43 +00:00
Christoph Albers 2e00d31d1f use_cookbook-openstackclient/identity_v3
- Now use cookbook-openstackclient to create endpoints role service and
  user
- added domain creation and access granting
- added values to work with identity_v3
- rewrote specs to work again
- updated readme

Change-Id: I6c91c874013190522dd7f1fd6060dc3796dc80fd
Depends-On: I0f8955f05de9b33711c54b9a198f45018cceb8e1
Depends-On: I2d404a424bd79a6e9b282304e21591fa33a48981
Depends-On: If7b4d6e563081a0be9957353d73ef61a9688df56
Depends-On: I84f850f32f25a318c3ed3c7337a0dfa6f641a5fe
2016-09-30 12:00:22 +02:00
Samuel Cassiba 00942d8d8d Style and lint fixes to support newer ChefDK
Change-Id: I9c105163c4425ca53eb26d09e42d6efced43bf6a
Depends-On: I6ce4587caa3ae68ddbd3ef1a521aaf46f4840b2c
2016-07-06 13:39:59 -07:00
Jan Klare ddbab534e0 initial commit for the newton development cycle
Change-Id: I4594c66bba8bde96562d838b1fbc1f05d7961ab0
2016-06-23 17:00:38 +02:00
Jan Klare faceb7e6e0 initial refactoring step and addition of gnocchi
* applied new template logic and refactored all recipes accordingly
* removed vmware and suse support and specs
* removed alarm ceilometer-alarm notifier and evaluator (needs to be rewritten
  for aodh)
* added recipe for telemetry-metric/gnocchi deployment
* set gnocchi as default dispatcher for ceilometer
* added initial specs for gnocchi recipes

Depends-On: I22114b6d2d46cce561a2f292b92ff5f531cff533
Change-Id: If513cb2715d8266845bd6541d12005edef70f11c
2016-06-20 17:50:16 +02:00
JJ Asghar 495ae4a088 Initial Liberty Changes
Metadata changes
- Updated maintainer email
- Updated the version

rubocop updates. remove db2 reference

Change-Id: I116801590b438d49f042aa70d94a6fa84670afc5
2015-08-31 16:42:34 -07:00
Mark Vanderwiel 7b4eed9eb5 Replace deprecated get_secret
Use get_password 'token' instead.

Change-Id: Iab395042c34bceb1ce30e01d264276ef4cc8d251
Partial-Bug: #1467662
2015-06-22 15:49:51 -05:00
Mark Vanderwiel df5bec0b0a Allow rabbit mq kombu ssl configuration
Add the rest of the kombu ssl configuration options.

Change-Id: I720aea02ea26d7a64aeb5c92575a7a6f77458918
Partial-Bug: 1464706
2015-06-16 10:55:41 -05:00
wenchma ff2d6f597d Add rabbitmq max_retries and retry_interval attributes in ceilometer conf
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: I1fd9d4840a55453667eb2ed4c03e4c3cb72442b9
Closes-bug: #1439968
2015-06-12 15:14:47 +08:00
Mark Vanderwiel d2d9cd81ec 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: Ib326cac0e09df628189e290807513bad59df0b76
2015-05-29 12:18:53 -05:00
Mark Vanderwiel 76e0daac52 Initial kilo updates
Change-Id: I7d4cace5656a9a2854a6fd619bbe5e400dc2fdff
Partial-Bug: #1426424
2015-02-27 14:11:44 -06:00
Mark Vanderwiel 3df092ef04 Missed bumping Common version
Change-Id: Icf83059f8fdb465c2c72e0233777c9844d530f32
Related-Bug: #1412919
2015-02-09 12:04:05 -06:00
Mark Vanderwiel d0d8d07afb Cleanup cookbook contact info
* Consistent email across cookbooks
* Add Contributor.md to help out new folks
* Fix broken link in Testing.md
* Readme tweaks

Change-Id: I04e953616aa82781dbdc2fae7dda71b01584f371
Partial-Bug: #1342735
2014-10-14 10:25:20 -05:00
gengjh 4529146a83 Support VMware hypervisor inspector
1. If the compute driver is vmwareapi.VMwareESXDriver or
vmwareapi.VMwareVCDriver, set the hypervisor_inspector to vsphere and
add vmware section in conf file.
2. Reuse the vmware related attribute from compute cookbooks since
ceilometer need monitor the same vsphere.
3. Update the testcases

Closes-Bug: #1351619
Change-Id: Ie67e84e5695bd5f9ceaa6ed6682cfe33f7ed0b68
2014-08-04 09:28:36 +08:00
galstrom21 c9f8ffd4da Setting up repo for master Juno Branch
* Update metadata version
* Removing Strainer file
* Adding Gemfile.lock to .gitignore
* Updating Gems
  * chef (11.12.0)
  * chefspec (4.0.0)
  * rspec (3.0.0)

Change-Id: I3afbf5f0d411a4b81bc751f23ebad0ae099341fe
Partial-Bug: 1349865
2014-07-29 11:36:40 -05:00
Ionuț Arțăriși 10ce42a987 use new python_packages attributes from -common
*_python_packages attributes are being moved to -common in order to
remove the duplication from all the cookbooks which are using them

Change-Id: I03d0acf12d4c53952498beeaefad9f3b237ccb9d
Implements: blueprint move-python-db-client-attrs-to-common
2014-07-07 17:31:21 +02:00
Jan Klare c309a0ae91 Changed the action of all package resources from default to :upgrade
Since no version is specified for any package and usually you do not
want to stick with one unspecific version you get during your first run
the action should be :upgrade.

Change-Id: Idc662737f1b03049de5555c6e1e54fc77532972f
Implements: blueprint allow-package-updates
2014-07-07 11:38:09 +02:00
hill 869ca9824b Add attribute sample_source
The sample_source is used to specific the source name of emitted
samples.It required to use different name if you want to consolidate
the data from different openstack region.
Changed the version to 9.1.2 and modified the change log and readme.

Change-Id: I0c2e0b6d651ad6c4daf724041014582b31337073
2014-07-04 18:13:03 +08:00
Matt Odden d3d61e474f Add missing AMQP options to ceilometer.conf
Add more AMQP and QPID configuration options
to the ceilometer configuration file. This enables
users to use QPID federation support and also
use durable queues for rabbitmq or QPID.

Change-Id: I7cf1230cadf41313cd505bf8d89509c9f064e0e3
2014-06-18 19:49:16 +00:00
Mark Vanderwiel e2d00ef7a7 Remove policy.json file
The policy file is just a dup of what's already in the distro
packages.  Until the cookbooks/chef support a policy type resource
duping them does not make sense and causes churn to keep in sync
with base openstack code.

Change-Id: Ib09d5efdf3927a381501eebd78d5c4db5133f057
Implements: blueprint remove-policy-templates
Closes-Bug: #1324187
2014-05-28 15:36:03 -05:00
Luis A. Garcia fc302f9550 Add recipes for alarm services
The telemetry cookbook currently lacks recipes for the alarm and the
agent notification services. This patch adds them as well as their
corresponding specs and documentation.

Implements blueprint alarm-sevices

Change-Id: I2896db6e95f52f4488ec8bb9bcb88c697cb712b6
2014-04-03 12:34:53 -07:00
Quan Guo 8aded3d41a Add hypervisor_inspector in ceilometer.conf
Add hypervisor_inspector configuration in ceilometer.conf, it's necessary
in some cases, for example, if we want to use this cookbook's template to
support installation of ceilometer agent on windows platform.

Change-Id: Ie42eb3d055ff1dbc3944adb18777073044983ed4
Closes-Bug: #1300080
2014-04-02 10:14:05 +08:00
Mark Vanderwiel 76099931f0 Icehouse branch version updates
Change-Id: Ib13632761a936f1946bda8b1769d195fbc114f10
2014-03-27 11:24:26 -05:00
ericzhou eb15ff73a5 Use the library method auth_uri_transform.
Change-Id: Id4f1cf95aaa96164c7eeae40550dac8857b31800
Imlements: blueprint move-keystone-authtoken-move-auth-uri-logic
2014-03-17 14:17:05 +08:00
Chen Zhiwei c74a5400b7 Rename openstack-metering to openstack-telemetry
update cookbook name, attribute name

Change-Id: Ibd17a61b06769ed03e87bdcf54f394e67fce5bcb
2014-03-12 23:47:26 -04:00
Jenkins e8f2c7d0a7 Merge "Add NoSQL support for metering." 2014-03-09 21:57:40 +00:00
ericzhou e3db2693b5 Create tenant/user and grant admin role for metering.
Create tenant/user and grant admin role for metering.

Change-Id: Ia1803d7b7b34bf48fd1282785967ac82a571a8a9
Closes-Bug: #1288047
2014-03-06 16:29:04 +08:00
ericzhou dc647a3283 Add NoSQL support for metering.
When NoSQL is used, ceilometer db sync is not required.

Change-Id: I568baf73d95311d895cbd59119688495a0b879dc
Implements: blueprint metering-nosql-support
2014-03-05 11:53:24 +08:00
Jenkins c6080e0104 Merge "Add client recipe for metering" 2014-02-25 02:09:03 +00:00
Luis A. Garcia bc2ff068eb Fix metering service endpoint path spec
After installing ceilometer with the metering cookbook, invoking the
ceilometer CLI fails because the API base URL used is
http://127.0.0.1:8777/v1/v2 which means that the base endpoint path of
/v1 is incorrect and it should be simply /.

The openstack-common cookbook was updated to set the right path but we
need to update the test cases, and point to the new version of the
common cookbook.

Change-Id: I203a5a6346a3765bb249149a209122ec3d33601d
Partial-Bug: #1277742
2014-02-19 17:23:46 +00:00
Mark Vanderwiel 1c25bafc37 Add client recipe for metering
Add an explicit recipe for installing client
only packages.
Tests are also included.
Bumped minor version for this new feature.
Added RHEL support and test

Change-Id: Ic4170f0df1a88839e97458ed5cb68237e61d0134
Addresses: blueprint add-client-recipes
2014-02-13 13:53:48 -06:00
Matt Ray c1f4c9b7f8 Filling out initial rubocop support for metadata.rb and the Gemfile.
https://blueprints.launchpad.net/openstack-chef/+spec/lint-and-unit-testing-for-havana
Removing tailor, cleaning up metadata and Gemfile, added TESTING.md and fixed a
broken test.

Addresses: blueprint rubocop-for-metering
Change-Id: I5a712c18033b6586548903dea93c8421050d971e
2014-01-09 17:37:17 -06:00
Ionuț Arțăriși 9423f6110d upgrade to Havana release
also upgrade gems:
- berkshelf, ~> 2.0.10
- chefspec, ~> 3.0.2
- foodcritic, ~> 3.0.3

Change-Id: I732f73d02263e3257167898826dbb8d0f60a064d
2013-12-12 09:42:55 +01:00
Matt Ray 6ab2050905 Relax the dependency on openstack-identity to the 7.x series
openstack-identity is now on 7.2.0, which doesn't get picked up because of the
strict dependency of the 7.0.x series. CHANGELOG cleanup.

Change-Id: I790fbf9c9db83d73eca1779798b9356089e545db
2013-12-02 15:09:52 -06:00
salmanbaset 510d2ee279 Adding qpid support to ceilometer
Moving all qpid parameters under default["openstack"]["metering"]
["mq"]["qpid"] so that other qpid options can be added under it.
Rabbit parameters will be brought under "mq" eventually. MQ is
selected through default["openstack"]["metering"]["mq"]["service_type"].
Default is "rabbitmq".

Implements: blueprint qpid-activemq-support
Change-Id: I4dd153a631063ee7c518e2d49fe01aa39a6f261d
2013-11-30 00:35:58 +08:00