Commit Graph

57 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 d159ddb2b7 Pull bind cookbook from git to fix version pinning issues
Change-Id: I9c1b8c4e6510b9764b46f2fc8d457b127179d58d
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-07-19 15:05:16 -07:00
Lance Albertson c7876b15a8 Update to Chef Workstation 21.2.303
Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/779389
Change-Id: I83cd40372baf914044aade1f9a61da060691d165
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-03-08 16:09:18 -08: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
Zuul a2d102d5e2 Merge "Updates for Train" 2020-06-11 00:40:36 +00:00
Lance Albertson 53d52da8f3 Updates for Train
Changed:
- Bumped version in metadata

Depends-On: https://review.opendev.org/731849
Change-Id: I8fb2c0e451b552136303215d234dc581d813c5b4
2020-05-29 14:54:08 -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 cac2e5ba29 Include missing cookbooks in Berksfile
This is for individual cookbook integration testing.

Depends-On: https://review.opendev.org/702772
Change-Id: I58e1e50abc2b6d5847cc08d022a303f2993db8d8
2020-01-30 13:06:14 -08:00
Lance Albertson 5b651a5207 Updates for rocky
- Update some documentation
- Move README.md to README.rst for better rendering

Change-Id: I4056718fea8ef476b0805cbf24c4d724d513a98a
2019-12-06 11:33:15 -08:00
inspurericzhang 26826bfa8e Replace git.openstack.org with opendev.org
Change-Id: I247616defa3244d9bda54757659260d8b95d0005
2019-11-19 18:26:04 +08:00
Jens Harbott 573bdf721d Bump version of fog-openstack gem
The new version contains the fix for the issue we were having with
specifying the endpoint_type for connections [0].

[0} https://github.com/fog/fog-openstack/pull/494

Change-Id: I5d2c4d5c61256dcd7d00dc3007df966b350b66b3
2019-10-11 09:23:10 +00: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
OpenDev Sysadmins a05f750cde 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:30:14 +00:00
Jens Harbott 1b1d6639f7 Update fog-openstack gem
Update fog-openstack gem to the current latest version.

Change-Id: I4631c4824f263f7afb2625793f3a6f705106cccc
2019-04-08 08:32:00 +00:00
ZhijunWei 51f3f6ff58 Change openstack-dev to openstack-discuss
Change-Id: Iea02da678c6489a114a3815218849e6e9e7ab3c2
2018-12-04 23:20:56 -05: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 8efb690b14 Pin fog-openstack to 0.3
The breaking changes of 0.3.1 have been reverted in 0.3.2 and the
changes have been reintroduced in 1.0.0.

Change-Id: I3bb53ef37a0a505adf5c06bf501f3f100632e21d
2018-09-21 04:43:35 +00:00
Samuel Cassiba b0f71890ea bump fog-openstack to fixed version which contains deprecation messages
This reverts commit 6ff248d681.

Change-Id: I83fb8960e9a651ebc800fab3f3cc33cc7b2635ae
2018-09-07 15:33:41 +00:00
Samuel Cassiba 6ff248d681 Revert "bump fog-openstack to fixed version which contains deprecation messages"
This reverts commit 3736216656.

Change-Id: I0c779126370003acff9c2743a15d84bd8779de2e
2018-09-04 17:29:13 +00:00
Jan Klare 3736216656
bump fog-openstack to fixed version which contains deprecation messages
Change-Id: Iee7025b56ab1f3a48a5828743ead080ac401605c
2018-09-04 10:35:18 +02:00
Roger Luethi 7ae001c6c4 Pin fog-openstack library to avoid breakage
The update of the fog-openstack ruby gem from 0.12.7 to 0.2.0 breaks
Chef recipes. The first call to cookbook-openstackclient from
cookbook-openstack-identity:recipes/registration.rb fails already with
something like (extract from a kitchen run of openstack-chef-repo):

  ERROR: openstack_domain[default] (openstack-identity::registration line 69)
  had an error: Fog::Identity::OpenStack::NotFound: Expected([200]) <=>
  Actual(404 Not Found)

  (http://127.0.0.1:35357/v3/v3/domains): The resource could not be found.

Change-Id: I4d30cb1770b6774b39bfd4e4c413f25816b405df
2018-08-31 05:53:19 +02:00
Samuel Cassiba 899992d1d8 Rename openstack-chef-repo references to openstack-chef
Change-Id: I2a26a4540f5d3237db4ecee2e8f250e7912c9fd5
2018-08-06 21:49:11 -07:00
Samuel Cassiba 341c5b8098 starting rocky development patch
Change-Id: Ia24eef700ab6c7fe359a17070981dc93e0300a18
2018-08-03 06:26:33 -07:00
Samuel Cassiba 7dffaaa416 Remove .zuul.yaml for import 2018-05-31 08:17:54 -07:00
Samuel Cassiba f91304ec17 Add .gitreview file 2018-05-28 09:11:21 -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 6391057a3c Update metadata for migration to OpenStack 2018-04-21 19:09:22 -07:00
Jan Klare aa3e7271e1
starting queens development patch 2018-03-06 10:01:23 +01:00
Jan Klare cf1bf525a5
Merge pull request #8 from scassiba/chef13_fixups
fix more resource collisions
2018-02-20 13:46:22 +01:00
Samuel Cassiba 15c451bc12 fix more resource collisions 2018-02-16 12:53:20 -08:00
Jan Klare 332f73217b
Merge pull request #7 from scassiba/master
Fixups for Chef 13+ for Pike
2018-02-12 17:12:06 +01: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
Samuel Cassiba 0b343d3c1b Fix metadata and LICENSE for foodcritic 2018-02-12 07:41:50 -08:00
Jan Klare 1df4fb87ba
update travis ci config with newes chefdk and adapt to cookstyle
* this is a preparation step for fully updation to chef13 (see also PR #7 for more updates)
2018-02-12 13:13:40 +01:00
Jan Klare 6472457e51
version bump to align with upstream 2017-11-23 15:49:28 +01:00
Jan Klare 00db69eaa9
Merge pull request #4 from ideaship/grant_domain_04
Grant domain
2017-11-13 23:22:41 +11: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 ae02bdc632 Remove superfluous arguments for grant_domain, revoke_domain
The project_name argument is ignored by openstack_user's grant_domain
and revoke_domain actions. This patch removes them from the test recipe.
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 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
Jan Klare 44a257fd4b Merge pull request #3 from howardabrams/master
Specify the default tenant during user create
2017-04-12 11:02:07 +02: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
Jan Klare 57e59b64e4 Merge pull request #2 from cloudbau/fix_grant_user_domain_role
Fixed function grant_user_domain_role
2016-09-30 12:17:57 +02:00