Commit Graph

202 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
Ghanshyam Mann 0b2219df30 Moving IRC network reference to OFTC
Also pull bind cookbook from git to fix version pinning issues.

Change-Id: I4e8122210bfaadd028b80d1a6cbd36dab3e3a83d
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-07-15 11:01:02 -07:00
Lance Albertson 4c8ec227d6 Update to Chef Workstation 21.2.303
- Cookstyle fixes

Change-Id: I230221e0350a53c0fb5ca05d74cf100c330becc4
Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/779389
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-03-08 16:23:13 -08: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 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 e34f03b53e Improve ChefSpec test speed by enabling caching
This updates all references of let(:chef_run) to cached(:chef_run) to
speed up tests. By doing this, we have to create a new cached(:chef_run)
block whenever we need to adjust node attributes for testing.

Speed was improved from 14 minutes 3 seconds to 3 minutes 41.8 seconds

Change-Id: I1233e25e69b956936fc19f5c57cedc529afbb730
2020-01-09 14:17:31 -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
Lance Albertson 3923f6ff5c 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: I52b2431da20b4ac994d920c233e6473ce275b197
2019-11-27 08:26: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 2fc511323f Create attribute for setting options passed to ceilometer-upgrade
I ran into a problem similar to this one [1] where testing gnocchi
commands did not work properly. The key problem is the fact that
`--skip-gnocchi-resource-types` was included in the ceilometer-upgrade
command.  To allow an easy work around, I figure we can just create an
attribute which can add any option to ceilometer-upgrade so you can set
it to '' if you don't want it.

It might be debatable on whether to just default to run it with out
ceilometer-upgrade instead.

Some additional fixes include:

- Move the ceilometer-upgrade command to a new setup recipe where it
  makes more sense since it needs to be run after Ceilometer and Gnocchi
  are setup.
- Fix name of gnocchi-metricd_service for RHEL
- Add same apache restart fixes that we implemented in other cookbooks.
  This is needed so that you can properly run ceilometer-upgrade with
  gnocchi enabled.

[1] https://bugs.launchpad.net/openstack-ansible/+bug/1737096

Change-Id: I619ef044b8cb254b23e0c7bc674c46d5dd7e0076
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-11-18 14:47:26 -08:00
Zuul f78fc972d0 Merge "Allow ability to configure pipeline publishers" 2019-11-18 16:11:13 +00:00
Zuul 39f8639584 Merge "Don't copy gnocchi_resources.yaml for RHEL" 2019-11-18 15:59:04 +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 ec8989cfca Don't copy gnocchi_resources.yaml for RHEL
RDO provides a sane copy of this file and it's causing issues on RHEL platforms.

Change-Id: Ia75850fd53829593d556e1e3fb1650f8ad919415
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-10-23 15:33:52 -07:00
Lance Albertson fd3d9ceb62 Fixes to support fog-openstack-1.x
fog-openstack-1.x already appends "auth/tokens" so we no longer need to
do that.

In addition, re-add openstack_endpoint_type which is now fixed now that this [1]
has been released upstream.

[1] https://github.com/fog/fog-openstack/pull/494

Change-Id: I06ee3681ff8bc90f15b2b0ecbdcaebe475709b31
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-10-14 06:27:17 -07: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
OpenDev Sysadmins 8fe7677556 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:40:36 +00:00
ZhijunWei a5bbccbe5c Change openstack-dev to openstack-discuss
Change-Id: Ie183fcc043510c08754faa3bff82e14613250be1
2018-12-04 23:21:08 -05:00
melissaml 81ae259189 Update the url in README.md
Change-Id: Ica910c8761fc9fe0065293b68e3e35b187aba327
2018-09-23 17:22:58 +08:00
Samuel Cassiba fe83864fc4 Rename openstack-chef-repo references to openstack-chef
Change-Id: I32664ac14ffd543ca9879e09eb345db8e05639aa
2018-08-06 21:50:28 -07:00
Samuel Cassiba 13902fe451 starting rocky development patch
Change-Id: Ie7c681548a902ecc050e204e873188eb547a281e
2018-08-03 06:42:11 -07:00
Seb-Solon 94e56a4138 Add: Aodh support into telemetry
Closes-Bug: #1779940

Change-Id: I6deefd31562fba5da3987ab31534ebd6689d27e2
2018-07-05 13:06:26 -04: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 13fe1087c1 Add delivery config
Change-Id: I9c4328d97cfad63791bfaefcd48619688bec2b7d
Implements: blueprint deprecate-rakefiles
2018-04-11 22:40:22 -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
James E. Blair 1f1739a698 Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I53c6bf99a218adb6a14f6fe339caa82a5439541d
2018-02-05 22:02:37 -08:00
Zuul d480d8801f Merge "disable ceilometer events when using gnocchi as backend" 2017-12-22 20:55:18 +00:00
Jan Klare 720ffcb9ed
disable ceilometer events when using gnocchi as backend
Change-Id: I0b9adc6a2ea8d5973c71152dd5d5efa3bbacf2a6
2017-12-15 12:09:55 +01: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
Roger Luethi 88c718d574 Remove domain role from ceilometer, gnocchi service users
This patch removes the openstack_user resource with :grant_domain
action. A user is always created within a specific domain; such a
membership cannot be tacked on later. This resource gave the users the
role intended for their project for the domain (i.e., for the Default
domain instead of for the service project).

We add the domain_name attribute that creates the users in the
desired domain. Note that this change needs a sufficiently recent
openstackclient cookbook -- otherwise the domain_name attribute is
ignored (which does not matter as long as the users are to be
created in the Default domain).

Change-Id: Ie793b3d2e0419da90888edbf33ff28d819892dcf
2017-11-13 15:08:49 +00:00
Roger Luethi 9ad24ffd47 Remove superfluous role_name arguments
This patch removes the role_name when using openstack_user's :create
action (it gets ignored by the target method).

Note that the spec test would still pass if only the line in
identity_registration.rb (but not the test) were changed, because the
code that actually does grant the role to the resource is executed right
after user creation and before any tests check the resource for the
existence of the role_name attribute. In other words: if the argument
were required in a call but only supplied in another call, the spec
tests would not catch it. Something to watch out for.

Change-Id: I45754d269598b821f0b86b6257556ebfe74dcd6b
2017-11-13 15:53:27 +01:00
Jens Harbott 7f4f94e57b Add native zuul v3 jobs defined in openstack-chef-repo
Change-Id: I33ff7caf87a3e88434407854b3c37a016e92e5c7
2017-11-02 10:43:46 +00:00
Zuul a2ac02958f Merge "Replace platform_family method and use attribute instead" 2017-10-29 02:57:20 +00: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
Seb-Solon 994abe4551 Replace platform_family method and use attribute instead
Change-Id: I1cc48f0cf67aee76372b69f86323210c933f67fd
Closes-Bug: #1724987
2017-10-25 22:01:55 -04: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
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
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
Hanxi_Liu 19edd22d7c Stop using old gnocchi reference
Gnocchi is being moved outside OpenStack to gnocchixyz.
Stop using its OpenStack reference.

Change-Id: Ib88dce329309472570d2c857c117f5fb73dd81ed
2017-06-01 14:48:10 +08:00
Jan Klare fd97f0e5bb add new Chef OpenStack Team Logo to README
Change-Id: Ie2c5bfb9f749e4b86e9e0918504624c4346f1a86
2017-05-29 10:53:08 +02: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
Jan Klare 30b8f35848 starting ocata development patch
Change-Id: I20539fad7a02aafea734719dc90b757bc5c6bde6
2017-02-23 17:07:20 +01:00
Jenkins 3d4ebe0106 Merge "Add an option variable to gnocchi-upgrade command" 2017-02-20 13:06:11 +00:00