Commit Graph

12 Commits

Author SHA1 Message Date
Ghanshyam Mann d2237f421a 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: I85b9fa6c38ce443d6d33992d1dabdae92e17a9d7
2024-02-17 20:52:39 -08:00
Lance Albertson 2402afd670 Migrate to using converge_by and fix idempotency issues
- Migrate away from using the log resource to using converge_by. This finally
  fixes idempotency issues we were having with all of these resources
- Fix :delete action in openstack_domain by disabling the domain prior to
  destroying it
- Add missing references to new_resource parameters
- Fix :delete action in openstack_endpoint resource
- Add domain_name property in openstack_project resource. This is required and
  would throw a deprecation warning in the backend system.
- Fix logic around user grant/revoke actions
- Cookstyle fixes

Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/838415
Change-Id: I33601eb5595c794a9a025417ed3bc88cfa6cfaf0
Signed-off-by: Lance Albertson <lance@osuosl.org>
2022-04-18 16:55:27 -07:00
Lance Albertson 9276352d02 Chef 17 support
- Remove bind from Berksfile
- Update copyright years
- Require Chef >= 16.0

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-common/+/813952
Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-ops-database/+/814032
Change-Id: If7390377bff2c3c37f861138a92f27d7202c29b5
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 09:04:32 -07:00
Henrique Santos 3ae01161cd Fixes user and project search by name in openstack_user resource
As project and user names are only unique for each domain and some
Keystone settings may filter user listing, any user or project search by
name needs to include the associated domain.

This change fixes any search done by name of a project or user in the
openstack_user resource. It is
assumed that if no domain is specified and there are multiple elements
with the same name, the first search result is
chosen.

Closes-Bug: #1871144

Change-Id: I0ed3ffabab5f8b0959c3b2c50a3619f378e59c9e
Signed-off-by: Henrique Santos <hfigueiredosantos@tecnico.ulisboa.pt>
2020-05-21 09:55:32 +01:00
Lance Albertson 27ae6d914f Stein fixes
- Cookstyle fixes
- Refactor Berksfile to use groups so we can exclude integration testing
  cookbooks
- Update documentation
- Update delivery configuration to exclude integration cookbooks

Depends-On: https://review.opendev.org/701027
Change-Id: I0bda5cd86c7c3afc89f7a813b5bb2baa56eb3ed8
2020-03-19 10:44:05 -07:00
Samuel Cassiba bfd132d5dc Style and lint fixes, add helpers
- add delivery and zuul configs
- prepare cookbook for inclusion in OpenStack
2018-05-28 09:05:53 -07:00
Roger Luethi 049eb35d46 Use user model for grant_domain, revoke_domain
Unlike the rest of the library, openstack_user's grant_domain and
revoke_domain actions bypass the fog models and call directly into the
requests. It works, but it is inconsistent and confusing.

This patch uses user.grant_role instead of directly calling
connection.grant_domain_user_role. Likewise for revoke_domain.
2017-11-10 17:03:03 +01:00
Roger Luethi 15781eac4e Add platform, version to spec files
This patch adds platform and version to the spec files. Without it,
every single test results in this warning:

WARNING: you must specify a 'platform' and 'version' to your ChefSpec Runner and/or Fauxhai constructor, in the future omitting these will become a hard error. A list of available platforms is available at https://github.com/customink/fauxhai/blob/master/PLATFORMS.md
2017-11-10 17:03:00 +01:00
Roger Luethi bfafac1d99 Allow user creation in domain other than default
For reasonably recent OpenStack releases, users are always created in a
domain (by default in the aptly named 'Default' domain). With this
patch, a new domain name attribute can be passed to the openstack_user's
:create action in order to create a user in a specific domain.
2017-11-02 15:28:09 +01:00
Howard Abrams 03fbe7b7a3 Specify the default tenant during user create
If the project tenant is given when creating the user account,
honor it by assigning that as the _default_ project tenant.

This is especially helpful when creating initial service accounts and
assigning them to the `service` project).
2017-04-11 14:38:58 -07:00
Christoph Albers d2b5bf7c37 Fixed function grant_user_domain_role
- method is from top level class (not domain itself)
- fixed specs
2016-09-30 12:08:13 +02:00
Jan Klare e86f258f5a initial commit
* working Rakefile to run lint, style and unit tests
* providers for domain, endpoint, project, role, service and user
* some initial README info
2016-08-30 09:44:21 +02:00