Commit Graph

458 Commits

Author SHA1 Message Date
Ghanshyam Mann 17c5f0c939 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: I7a2655cab7bc4caad707f5f98174aae0b659fd4f
2024-02-17 20:51:02 -08:00
Lance Albertson e7e76f07a2 CentOS 8 support
- ChefSpec updates

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/815147
Change-Id: I494763e2d873fc80d01135fb0ec99ab4e2e51635
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-22 11:36:25 -07:00
Lance Albertson d911425d0a Chef 17 support
- Require Chef >= 16.0
- Remove bind from Berksfile
- Update copyright years
- Enabled unified_mode

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/814051
Change-Id: I849792383efdcced72e399788ca849c102b8d510
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 12:04:59 -07:00
Ghanshyam Mann b74e375286 Moving IRC network reference to OFTC
Also pull bind cookbook from git to fix version pinning issues.

Change-Id: Ia3b774621ff241b794e1d527e772f1f81fbe5320
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-07-15 10:56:12 -07:00
Lance Albertson 7465bf2c3e Update to Chef Workstation 21.2.303
Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/779389
Change-Id: I5ce6e29bff30f82bf83e2e0f1adcff808d5f3434
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-03-08 16:16:25 -08:00
Lance Albertson d60c618b4e Cookstyle 6.19.5 fixes
Depends-On: https://review.opendev.org/756168
Change-Id: I6215914fbc6d2a1470b5b696b593c915f1b0572f
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 17:15:04 -07:00
Lance Albertson 4ecdad32bb Chef 16 updates
Depends-On: https://review.opendev.org/747556
Change-Id: I9ed3850bcd2093433420ef9870abf6dcc76f2294
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-08-27 17:22:07 -07:00
Lance Albertson a78e903e12 Updates for Train
Changed
- Update release to train
- Migrated to using multi-store feature which has been deemed stable

Fixed
- Cookstyle

Removed:
- Unused rubocop rules

Change-Id: I19c1ff463a70a81e4d08bacb86e480e0a3951789
Depends-On: https://review.opendev.org/731859
2020-05-29 17:17:41 -07:00
Lance Albertson dad981f9ce Stein fixes
- Cookstyle fixes
- Refactor Berksfile to use groups so we can exclude integration testing
  cookbooks
- Update documentation
- Enable sensitive resources for the execute resources in
  openstack_image_image and template[/etc/glance/glance-api.conf] to
  improve security.
- Update delivery configuration to exclude integration cookbooks
- Set glance_store/stores, and update auth_type to password as described
  in the upstream documentation [1]
- Fix ChefSpec output

[1] https://docs.openstack.org/glance/stein/install/install-rdo.html#install-and-configure-components

Depends-On: https://review.opendev.org/706151
Change-Id: I695b576267bc220b0b70011ab035520fc18ff955
2020-03-24 10:22:19 -07:00
Lance Albertson 900ea5b749 Include missing cookbooks in Berksfile
This is for individual cookbook integration testing.

Depends-On: https://review.opendev.org/702772
Change-Id: I868ec493b31b95aaff417a924bbec8206011def7
2020-01-30 11:23:50 -08:00
Lance Albertson b27882b9c0 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.

In addition:

- Add missing swift_store RHEL ChefSpec test

Speed was improved from 40.38 seconds to 28.25 seconds

Change-Id: I42a56190cc090bd25900a1fbd5b5f160e5468533
2020-01-06 12:27:53 -08:00
Lance Albertson 12bfe6e13e 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: I1d9ec1bac4b008f4ccf2c64194900ebb6db49c8d
2019-12-06 11:21:07 -08:00
Jens Harbott 34524eae9b 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.

Depends-On: https://review.opendev.org/682918
Change-Id: I8d5033c6bf045fa3df0b3e7d388b12c175b153f1
2019-11-08 09:49:15 +00:00
Lance Albertson cf08cbb527 Remove deprecated registry service
The glance registry has been deprecated upstream [1] and needs to be removed.
This removes all references to the registry service and moves the db migration
to the api recipe.

[1] https://blueprints.launchpad.net/glance/+spec/deprecate-registry

Depends-On: https://review.opendev.org/690410
Change-Id: I356aa65e63032e7866470ad507e5c9bce793a52b
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-10-28 11:14:18 -07:00
Lance Albertson 13c672e052 Move glance-manage db_sync to api recipe
This is needed due to the registry being deprecated upstream and will be
removed.

Change-Id: I5a291c11816e1b6a7d0d62855785c7e2408c5f87
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-10-28 11:13:55 -07:00
Lance Albertson 59b082a6d0 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, comment out endpoint type until this PR [1] gets
merged and released.

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

Depends-On: https://review.opendev.org/666176
Change-Id: Ic80d08b6ed0180ca9513e4b4e230e787b2f5c52e
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-07-03 16:05:13 -07:00
Zuul b5e593d9b1 Merge "Drop admin endpoints and cache dirs" 2019-04-29 15:22:25 +00:00
Jens Harbott 187d3f0198 Drop admin endpoints and cache dirs
The admin endpoints offer no special functionality, users may talk to
the public endpoints instead. The only historic use case has been the
keystone v2 admin endpoint, but with keystone v3 API, even that is no
longer needed.

Also stop creating cache dirs that were only needed while keystone
supported PKI tokens.

[0]
https://opendev.org/openstack/openstack-chef-specs/src/branch/master/specs/ocata/all/drop-admin-endpoints.rst

Depends-On: https://review.openstack.org/652050
Change-Id: I58f1c442dc472c8e96ca7bfaf03577d14ca65cd5
2019-04-29 10:53:43 +00:00
OpenDev Sysadmins c699256174 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:42:26 +00:00
ZhijunWei 8142de7e19 Change openstack-dev to openstack-discuss
Change-Id: I3a42ded4e67249617fa68303bc47196aaf87807c
2018-12-04 23:21:03 -05:00
Samuel Cassiba 2d37f193e9 Rename openstack-chef-repo references to openstack-chef
Change-Id: I8795e074cd458347dbd9a75077457a27d97f7d04
2018-08-06 21:49:49 -07:00
Samuel Cassiba 6e9924ea12 starting rocky development patch
Change-Id: Id6bde5efcf7574d6718301ffd02854418b34cf04
2018-08-03 06:38:40 -07:00
Samuel Cassiba e7f5813c75 Use internal identity endpoint for services
- uses internal Keystone endpoint for service-level communication
- removes use_inline_resources

Depends-On: Id74966d9f1279f725bc41c08e434230a7845bbc1
Depends-On: I161af1074cd17f2e3d2d2cf0b37a0c5fa1015fd3
Change-Id: Iabb4f3549fed0d8e0a5da0beb348ca29e5a14557
2018-07-16 15:18:02 -07:00
Samuel Cassiba 7696912e7a 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: I7e1ee2fa32e5d9b816bd3624524e6680a278ed5d
Implements: blueprint simplify-identity-endpoint
2018-06-14 19:15:20 -07:00
Samuel Cassiba eda01f5a0f Add delivery config
Change-Id: I54ff6e326b162e2497fc7823df5d5a0c343b8217
Implements: blueprint deprecate-rakefiles
2018-04-11 22:26:21 -07:00
Jan Klare e6ffa82d84
remove unused ceph related attributes
Change-Id: Id6a28d4588bc52e594f9c6278b49624c3df9e59f
2018-04-05 16:26:11 +02:00
Samuel Cassiba eefe98043d 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/549345
Change-Id: Ib6a3433aa83ee0b1847c87be7eaa0ea3978dd0f3
2018-03-06 12:13:20 -08:00
Samuel Cassiba c11abab62d Update CirrOS, Ubuntu image locations
- include Artful instead of Zesty to keep up with the times
- update cirros references to 0.4.0
- remove stale repo reference

Change-Id: I8b63581849d9c7e9d67d56e16619191703868755
Implements: blueprint modern-chef
2018-02-08 22:22:22 -08:00
James E. Blair 62ab2f7b2e 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: I820c9462836bb3c6830d4c2246505482c0c4c455
2018-01-27 21:59:28 -08:00
Samuel Cassiba edc140b189 image refactor for Pike and Chef 13
- implemented foodcritic and cookstyle corrections
- deprecated node.foo.bar method access for node['foo']['bar'] bracket syntax
- deduplicated resource calls for identity registration

Implements blueprint modern-chef

Change-Id: If7d3ed298408d183a2d2ebaa1f9b5df148ac53e3
2017-12-10 14:37:40 -08:00
Roger Luethi 6ab8aa8ca7 Remove domain role from glance service user
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 user 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 glance user 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 glance user is to be
created in the Default domain).

Change-Id: I07086d9ab65581cdcd77d402fe0d513b03a0af69
2017-11-13 15:08:03 +00:00
Roger Luethi 82056093ac 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: I6d98e0603cc4d8fa2dd21cd402adbbe888fbe4f3
2017-11-10 10:09:05 +01:00
Jens Harbott 7262a8c6e0 Add native zuul v3 jobs defined in openstack-chef-repo
Change-Id: I2c86f966a9762bcd053ee503c152fab6c18f1792
2017-11-02 10:39:34 +00:00
Seb-Solon 9186e1262f Replace platform_family method and use attribute instead
platform_family method is not working on latest Chef versions

Change-Id: I7e7fb5c51e97f3e4186a5f735f4fd8285934e0f0
Partial-Bug: #1724987
2017-10-28 15:44:03 -04:00
Samuel Cassiba 7eb5fd6113 Initial image Pike updates
- Switched default linter to cookstyle
- Freshened image locations
- Renamed rake tasks to align with Chef conventions
- Normalized template comment

Change-Id: Ib99d9b12f036ff52e44a270455f0d2e16561f98a
2017-08-25 09:42:35 -04:00
Jan Klare 8194db94e4 starting pike development patch
Change-Id: I9b5a5b1d94cb61dad2b26fb7653d2648dc2ebdfc
2017-08-17 14:19:36 +00:00
Jan Klare a0635f0804
fix specs to align with new ops-database mysql connection syntax
Change-Id: I614c72ff33765e84ba4141234e32d575f09891a9
2017-08-17 16:05:01 +02:00
Samuel Cassiba 5d7a11aeb3 Style and lint fixes for newer chefdk, deprecated Gemfile
- Removed ancient Gemfile
- Style and lint fixes to support newer chefdk
- Rewrote metadata.rb for readability

Change-Id: Ie61ae3ca685738fe1de98fc9223d3e39535ce000
2017-08-02 02:18:08 -04:00
Jan Klare 7bc24a21a4 add new Chef OpenStack Team Logo to README
Change-Id: I3fcb57704feef69cc22d27d9199e5f7e617896a4
2017-05-29 10:53:08 +02:00
Jan Klare f28939297d starting ocata development patch
Change-Id: I53003813c63124da340209f0e4a35cc8583ce88a
2017-02-23 17:06:31 +01:00
Christoph Albers d6735b4b5f Added option to upload images with specified ID
- updated rubocop_todo
- added upload_image_id attribute
- updated specs

Change-Id: I29fd680ca4b16160a015fbf809cdd81860df9eeb
2017-01-11 14:23:44 +01:00
Christoph Albers 9dd38224a9 RPC_backend / transport_url workover
- removed deprecated rabbitmq attributes
- added rabbit_transport_url

Change-Id: I2560f8010366d9c73fb9d6e2d6f6555d0c4ee7a1
2016-12-20 11:45:25 +00:00
Jenkins 1ae3152df5 Merge "Deprecated python-glanceclient" 2016-12-20 11:02:02 +00:00
Samuel Cassiba f428ecb5a2 Deprecated python-glanceclient
- deleted client.rb
- deprecated python-glanceclient references

Implements blueprint newton-xenial

Change-Id: I72dbd7d85cf745d2ca32c405df26b70bb353e1ed
2016-12-14 19:54:39 -08:00
Flavio Percoco ba2d462c46 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/9f375dd6eca2b5da2cef2a4b142aff64

Change-Id: I3734bd6bcdcc20e5c98c5132810a614cbb2bbc18
2016-11-26 12:01:22 +01:00
Christoph Albers 419e7bc05e use_cookbook-openstackclient/identity_v3
- Now use cookbook-openstackclient to create endpoints role service and
  user
- added domain creation and access granting
- added values to work with identity_v3
- rewrote specs to work again
- updated readme
- added domain to image-upload
  edited resource / provider

Change-Id: If7b4d6e563081a0be9957353d73ef61a9688df56
Depends-On: I0f8955f05de9b33711c54b9a198f45018cceb8e1
2016-10-10 12:58:54 +00:00
Samuel Cassiba 8be768ab2e Increment Ubuntu release to 16.04
This is a cosmetic change that only affects unit tests.

Change-Id: Iff1654d1669b27e55d252245c299aa80f71179c6
Implements: blueprint newton-xenial
2016-08-10 19:33:07 -07:00
Samuel Cassiba a08aecef1d Style and lint fixes to support newer ChefDK
Change-Id: I0a3872cd3a21c31b5e3a7b6190f911280e9ed909
Depends-On: I6ce4587caa3ae68ddbd3ef1a521aaf46f4840b2c
2016-07-08 10:08:37 -07:00
Jan Klare 96ed4cf461 initial commit for the newton development cycle
Change-Id: I4160a062a6019c2d8f35d27464d9b7df973862b8
2016-05-31 10:34:11 +02:00
sharat.sharma fce19da1aa Removed cert_required field which is no longer in use.
Change-Id: Idc20e67af363312154a9f6f79088b0b7503b514a
Closes-Bug: #1467951
2016-05-19 15:18:39 +05:30