Commit Graph

47 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 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 c13ea35e3d Cookstyle 6.19.5 fixes
Update ChefSpec due to changes made in apache2 cookbook.

Depends-On: https://review.opendev.org/756168
Change-Id: Ia19ea6bebf787f1d8b1542bb6c895a294a5e72bc
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 17:30:51 -07:00
Lance Albertson 922e5284e2 Chef 16 updates
Depends-On: https://review.opendev.org/747556
Change-Id: Ib869c7c1aded0cc0669f83fdad9ac1077851f08f
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-08-27 17:42:17 -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 2e36b048fc Manage /etc/ceilometer/polling.yaml
This adds management of /etc/ceilometer/polling.yaml which defines which metrics
to poll and how often. This pulls in the default configuration which the same
for both RHEL and Ubuntu and adds two new attributes for configuring the file.

In addition, restart various services related to the configuration file.

Change-Id: I69ed0a8933a971d9cac20dbd4133197a7e4274af
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-11-19 09:47:54 +00:00
Lance Albertson 0a6f1d840a Remove deprecated api service
The API service for Ceilometer was deprecated in Ocata [1] and apparently we
missed that. This removes all references to the API service which is no longer
needed.

[1] https://docs.openstack.org/releasenotes/ceilometer/ocata.html#deprecation-notes

Change-Id: I7a888a4aaadaa8213d6763854b39d78910fad0db
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-11-19 09:47:11 +00:00
Lance Albertson e416ba5d72 Allow ability to configure pipeline publishers
This adds a template for managing the pipeline.yaml file which allows one to
configure the pipeline publishers such as gnocchi or prometheus. The template
file was taken from the latest Rocky tarball for ceilometer.

Change-Id: I938219bfdcfa69a910cae4b72a40c19d5124d99e
2019-11-05 19:12:05 -08:00
Lance Albertson e0a39ccaf1 Fix gnocchi endpoint issues
This fixes two primary issues:

- Removal of using node['openstack']['api']['auth']['version'] and converting to
  using ::URI.decode
- Renaming endpoint attributes from telemetry-metric to telemetry_metric to
  match what's used in openstack-common. Also rename all attributes to using the
  underscore to minimize confusion.

Change-Id: I59c960a18f9e88eea494ec3c7bdbf189309f23e7
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-06-15 22:56:30 -07:00
Samuel Cassiba a5d4ce3bd2 Simplify identity endpoint
Per the Keystone Install Guide[1] the admin endpoint is superseded in
favor of a single public endpoint. As a result, the admin endpoint is no
longer deployed by default.

[1] https://docs.openstack.org/keystone/queens/install/keystone-install-ubuntu.html#install-and-configure-components

Change-Id: Ic2733d94e776eaa50ad8e4a39e6d2a8c18a45d89
Implements: blueprint simplify-identity-endpoint
2018-06-14 19:15:45 -07: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
Samuel Cassiba d6736f20ac Initial telemetry Pike updates
- Switched default linter to cookstyle
- Renamed rake tasks to better conform with Chef conventions
- Normalized template banner

Change-Id: If802d82561619a0b7951422dc0e1e913f2c4c8b4
2017-08-25 10:14:01 -04: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
Christoph Albers 5578a44ee7 Fixed directory creation
- there was a bug when creating the
  node['apache']['run_dir']}/ceilometer directory
  which won't be created when the enclosing folder doesn't exist.
  This is the case especially on Compute-Nodes in Multi-Node environments

Change-Id: Id7fa2f415b85c83c978cf391c7ad4afe08239250
2017-07-25 12:01:44 +00:00
Samuel Cassiba 128e66eb4b Corrects Ceilometer installation, fixes typo
- corrects deamon_process to daemon_process
- removes duplicate Listen directive in wsgi-template.conf.erb that gets
  emitted in ports.conf that the apache2 cookbook lays down
- adds a run directory for ceilometer api socket

Change-Id: Ia369a50e42453428b0c572659b0c4078920e9890
2017-03-06 18:09:03 -08:00
Christoph Albers 948cf7a4b3 RPC_backend / transport_url workover
- removed deprecated rabbitmq attributes
- added rabbit_transport_url

Change-Id: Iafb0c0644d4e9462aca0ee140aa0d06fa18e5f3e
2016-12-16 17:48:37 +01: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
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 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 fe9acf1d3e Use identity_uri_transform for identiry_uri support
Remove deprecated keys and use identity_uri via the new transform
helper method.

Change-Id: Ibd21f81607f5ef1b02e07e4da3e5ea306f7d6f8b
Implements: blueprint identity-uri
2015-04-06 17:10:09 +00:00
Ken Thomas 013f010d55 Use identity-internal instead of public endpoint
The discussion on using identity-internval vs the public
identity-api endpoint can be found here:
https://groups.google.com/forum/#!topic/opscode-chef-openstack/an9rydsrC0k

Change-Id: Ic3a1b4914aeb095b4e9b37d5d4f4275bfa970edc
Partial-Bug: 1412919
2015-02-03 20:36:01 +00:00
Ken Thomas dcaeffd75c Use new common specific_endpoint routines
Now that admin_endpoint, public_endpoint, and internal_endpoint
in the common library are working, these are the changes to use
them in the openstack-telemetry recipes.

Change-Id: Ibddb87c1ae2e92c43c0b88495d363b6d8179d300
Partial-Bug: 1412919
2015-01-30 22:20:27 +00:00
ZHU ZHU 67e3279071 Add rabbit HA configurations
This commit will add the rabbit HA related two configurations:
 - rabbit_hosts
 - rabbit_ha_queues

Change-Id: I85c329778de7baf138ec860e09f7e1572ad4c19a
2014-10-25 08:15:53 -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
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
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
Darren Birkett 0d04a07734 Add ability to specify api host/port in config file
Add the ability to override the default listen IP/port for the api
service in the config file.
Use the ['telemetry-api-bind'] namespace to derive these values

Implements blueprint increase-ip-binding-flexibility

Change-Id: Ia51bd1b760563f06ed36ec8190f36f4e03a79695
2014-04-25 16:07:21 +01:00
Stephan Renatus 5c557b7153 Fix service subscriptions and definitions, add package overrides
Some things were a little off wrt. the way we usually do stuff.  This
change fixes the following:

- package resources take the override settings from node attributes
- all services subscribe to their config file
- the service definitions include restart and status actions, and
  enable services

Change-Id: I3d4a2f9247dda34a35897fdfe08d9e8cf27556b8
Closes-Bug: #1303777
2014-04-09 10:49:41 +02:00
Chen Zhiwei 3d27fb8363 Add DB2 support to ceilometer on redhat platform
Add a new attribute
default['openstack']['telemetry']['platform']['db2_python_packages']

Change-Id: I51c6974956ea5247f31f1d060cc8404610fab1d1
Implements: blueprint db2-support
2014-04-02 20:38:00 -04:00
Luis A. Garcia 42df38891b Use get_secret instead of secret
The new get_secret method allows the 'secrets' databag to be renamed,
just like all other databags.

Change-Id: Ic8be5d19a112d78e22716c0cd571efc7186ac9ce
Related-Bug: #1288784
2014-04-01 15:45:45 -07:00
ericzhou d1224c445b Add metering_secret configuration to ceilometer.conf.
Change-Id: I639ad3bebf489367ad8ed182c276fc32eec8d369
Closes-Bug: #1290721
2014-03-19 21:04:42 +08: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 a95069cf33 Merge "Use get_password method to obtain qpid password" 2014-03-10 10:43:44 +00:00
Matt Thompson 45fc85eef1 Use get_password method to obtain qpid password
Currently, qpid's password is stored in an attribute in the common
cookbook.  This change causes the password to be looked up via
get_password method, which is how we obtain the rabbitmq password.

Change-Id: I7afe9a0a069c6527ced4df7f094c31c1ca4acec4
Implements: blueprint use-data-bag-for-qpid-password
2014-03-06 11:11:13 +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
Christopher H. Laco 7de154aa06 Upgrade/Update rubocop
Now that almost all of the rubocop blueprints have been completed, make
one final pass through all of the cookbooks ensuring they're all in
sync with each other.

- Upgrade rubocop to 0.18.1
- Fix violations caused by 0.18.1 upgrade
- Move Excludes for non-existent folders to Includes so they
  automatically cover future additions

Change-Id: I62cb43675f56469cefaa480e5043514741bedb04
Implements: blueprint lint-and-unit-testing-for-havana
2014-02-04 16:08:09 -05:00
Matt Thompson 34e8b38de6 Clean up cookbook for bp/clean-up-attr-for-mq-and-db
This change removes the attributes we'll be moving to openstack-common
and changes reference of those attributes to reflect new (more
consistent) namespace.

Change-Id: I30e37b4ff6369c19978973a8890ef2122692db44
Implements: blueprint clean-up-attr-for-mq-and-db
2014-01-24 10:26:42 +00:00
Christopher H. Laco 513864015c Update recipes to be rubocop compliant
- Add rubocop.yml in recipes/
- Add recipes rubocop test to Strainerfile
- Update recipes to comply with rubocop

Change-Id: I7129c11c769688812e412a49cf37d4935d984985
Addresses: blueprint rubocop-for-metering
2014-01-17 14:46:52 -06:00
Andy McCrae f7ac1e3599 Move to use "get_password" instead of "{user,service,db}_password"
The user_password, service_password and db_password functions are redundant
since they simply call "secret". Creates a get_password function thata will
accept a "type" of db, service or user.

All instances of these calls have been changed to call get_password

Change-Id: Ia4dbfe4ff794efc84c900950a666085deebaf7f3
Partial-Bug: #1195915
2014-01-15 18:39:35 +00:00
Ionuț Arțăriși 461f3102d0 setting the utf8 charset manually for mysql no longer required
this is now done by the db_uri library method in
openstack-common/libraries/endpoints.rb

Change-Id: I93c5ac383fb870eb1604cf68b200a564100663a3
2013-12-10 12:33:28 +01: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
Justin Shepherd dc89aea2de Fixing inconsistent auth_token middleware
* Version bump to 7.0.5

addresses: bug #1207504

Change-Id: I5b0360369fa18772c7a488458e271678f465ca8f
2013-11-11 22:36:29 -06:00
John Tran 93e308a163 Fix naming inconsistency for db password databag
The other openstack services cookbooks refer to the db password databag by the
service name (nova, swift, quantum) and therefore openstack-metering cookbook
should call the db password databag by service name 'ceilometer' to make it
consistent

Change-Id: I0a17e065f630f8506a5dd94b3a1ff8ed44482adc
2013-09-05 17:23:40 +00:00
John Dewey c9851501b7 Initial add of ceilometer recipes
These were migrated out of `openstack-compute` and into their
own cookbook.  This is an initial best-effort attempt.

Made the following changes, which differ from the recipes imported.
* Moved to openstack["metering"] attribute namespace.
* No longer performing source install.  This was done for folsom.
* No longer writing out an Apache virtualhost.  This was done to
  protect the folsom non-authenticated API endpoint.
* Templates write out as the ceilometer user/group vs nova.
* No longer including nova-common recipe.  It doesn't appear nova.conf
  is necessay (although I may be wrong).  The stackforge puppet manifests
  do not seem to do this [1].
* Added Strainerfile for testing.

  [1] https://github.com/stackforge/puppet-ceilometer).

bug 1187514
Change-Id: Ia97126e13e422037ad1f2c89debd9e4cdfa60b0a
2013-08-02 14:20:06 -07:00