Commit Graph

22 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
Lance Albertson e216cc621e Cookstyle fixes for Chef 16
Also loosen the fog-openstack dependency a bit since this is now included in
Chef Workstation and will likely cause issues when doing testing.

Depends-On: https://review.opendev.org/747503
Depends-On: https://review.opendev.org/740342
Change-Id: Iaa0ccfa7dd47a729423fc7ce1115849a282d2511
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-08-22 14:02:00 -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
Lance Albertson 88f72f7697 Fixes to support fog-openstack-1.x
Depends-On: https://review.opendev.org/666176
Depends-On: https://review.opendev.org/665827
Depends-On: https://review.opendev.org/666182
Depends-On: https://review.opendev.org/666183
Depends-On: https://review.opendev.org/666184
Depends-On: https://review.opendev.org/666185
Depends-On: https://review.opendev.org/666188
Change-Id: I58a8b43bbe1bb866a17b99eec713028cc34bf8b0
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-06-20 08:50:13 -07:00
Samuel Cassiba 26bcde5a44 Revert "Update base resource for fog-openstack 1.0"
This partially reverts commit 1379c2a8c9 and pins the gem to the latest stable release.

Depends-On: https://review.openstack.org/607683
Change-Id: I70c37040ff3a50f61d738e7a6a3111bcefc15a79
2018-10-03 11:43:43 -07:00
Samuel Cassiba 1379c2a8c9 Update base resource for fog-openstack 1.0
The breaking changes from fog-openstack 0.3.1 were reintroduced in a
1.0.0 release.

Change-Id: I1362851729a4c4839e12ba81cfaf86db5ad2b989
2018-09-21 08:12:13 -07:00
Samuel Cassiba 341c5b8098 starting rocky development patch
Change-Id: Ia24eef700ab6c7fe359a17070981dc93e0300a18
2018-08-03 06:26:33 -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
Samuel Cassiba 15c451bc12 fix more resource collisions 2018-02-16 12:53:20 -08:00
Samuel Cassiba 50b07b156a Aggressively undeprecate legitimate method calls 2018-02-12 08:04:51 -08:00
Samuel Cassiba dea8e2d18e Fix endpoint interface handling 2018-02-12 07:41:50 -08:00
Samuel Cassiba a48eb7cca2 Refer to property_name as new_resource.property_name
In Chef 14, the short form of property_name is removed, in favor of
new_resource.property_name.[0]

[0] https://docs.chef.io/deprecations_namespace_collisions.html
2018-02-12 07:41:50 -08: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 97239e41a9 Add comments to openstack_user.rb
The new comments try to clarify the purpose of the ":grant_domain"
action of the openstack_user resource.

In contrast to what the name may suggest, the action does not grant a
domain (which is not possible). Instead, it grants a role to a user who
is already in a specific domain. The domain attribute is merely used to
identify the user.
2017-11-02 15:28:09 +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 e22f838e0f minor fix for openstack_base lib since new_resource was used in wrong
context
2016-09-26 17:35:43 +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