Commit Graph

24 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 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
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 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
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 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
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 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 a08aecef1d Style and lint fixes to support newer ChefDK
Change-Id: I0a3872cd3a21c31b5e3a7b6190f911280e9ed909
Depends-On: I6ce4587caa3ae68ddbd3ef1a521aaf46f4840b2c
2016-07-08 10:08:37 -07:00
Christoph Albers 6823eb84cb refactoring final step
* removed rubocop exceptions in recipes and regenerated the
  .rubocop_todo.yaml containing all remaining exceptions
* removed fedora, suse as supported platform
* adapted optimized endpoint logic
* moved endpoints from openstack-common to default attr
* bumbed openstack-common and identity to higher version
  due to refactoring
* moved version up to 13.0.0
* adapt the specs (unit tests) to work again
* added new logic into templates/default/glance-*.conf.erb
* refactored attributes throughout all recipes that were connected to
  the attributes used for the glance-*.conf.erb template to adapt the new
  template attribute syntax
* moved all attibutes/default.rb that were used in glance-*.conf.erb to
  attributes/glance_*_conf.rb
* removed all attributes from default.rb and glance-*.conf.erb which are set
  as default in attributes, openstack doc and used to render the template
* seperated filestore config and deployment from default api recipe and made it
  optional (e.g. swift_store)
* removed service config templates in favor of openstack-service.conf.erb from
  common cookbook
* removed default support for most filestore backends in favor of an easily
  wrappable cookbook structure which allow the configuration of filestore
  backends in wrappers

Depends-On: I3262b2e6f792f37c32a446e6567790b82bdd4613
Depends-On: I0547182085eed91d05384fdd7734408a839a9a2c
Implements: blueprint cookbook-refactoring
Change-Id: Ifa5a7f4e1df47a3961976e64f654224864c3dcb4
2016-02-08 15:08:52 +01:00
Mark Vanderwiel 49d69e171b Fix deprecated glance options
--is-public is now --visibility
--location is not support, need to redirect from stdin

Change-Id: Ie8d62b449ec272f5cb7a06acdd54b3437aa57f98
Closes-Bug: #1502204
2015-10-02 11:13:25 -05:00
Mark Vanderwiel e53ae638f1 Cleanup minor rubocop offenses
Cleaned up all the minor rubocop issues, the ones left relate to
complex logic and what I think is a bug in rubocop for nested
vs compact modules/class definitions.

Change-Id: I6097cd1032a5b2305d9a6ca8cb2e2b19f6a57a1e
2015-05-29 10:09:57 -05:00
Mark Vanderwiel 1600d6a14d Only admin can create public glance images
With change to use the correct "service" role for service users,
they can no longer create public images.
For this recipe, need to use admin for public images.

Added a public flag to the lwrp such that other non-admin
accounts can create images.   Made a note in the client cookbook
patch that this support needs to be merged in there.

Change-Id: I99e2febfdbf6f4bab260d897216f4ae768cf3315
Related-Bug: #1436050
Closes-Bug: #1441292
2015-04-07 13:51:22 -05:00
Mark Vanderwiel 8463e1a9b6 Add support for vhd vmdk vdi iso raw disk formats
Image upload provider already has a image type, but was not
used to handle the other common image types that have a simple
bare container format.   Expanded the list of types and allowed
the existing upload_image recipe to also take advantage of this
new provider disk type support in an optional way.  Backward
compatible.

Change-Id: I1f5983150aa648837c9bcd256f0ceb4bf73d4b52
Closes-Bug: #1383079
2014-10-23 10:56:54 -05:00
Mark Vanderwiel 4d0e972aea Fix image upload for tar kernel/initrd images
Current logic is parsing output from glance to get the 'id' of the
kernel and initrd images.  Glance command output format was changed long ago
to a table style output and broke this.
There is already a todo in the code to refactor this but I did not attempt
that here.  Also add a todo for more provider method testers.

Change-Id: I68affe1d7f3df2ee69717641f5be6ba16615654e
Closes-Bug: #1373614
2014-09-26 15:45:05 -05:00
Mark Vanderwiel d929f8dfe1 Fix image upload to provide error message when type not supported
Current upload only handles .gz, .tgz for ami and .qcow2 and .img for .qcow
Handle different extension with log error and don't mark resource as
updated.
Add new spec to cover provider logic which will make it easier for
bp below.

Created blueprint glance-upload-image-formats
to allow support for ALL format and container types.

Change-Id: Iee740ae6994a2bcc2880844c76f84e58ca735a73
Closes-bug: #1327249
2014-06-12 16:14:59 -05:00
Andy McCrae 5d3a356a30 Complete Rubocop compliancy
- Ensure all files are rubocop compliant following commits
- Move to use a single .rubocop.yml file
- Update StrainerFile to reflect the single .rubocop.yml

Change-Id: I6d7b30aae4d839a2c8c2ebebbf5e9b53518db71e
Addresses: blueprint rubocop-for-image
2014-01-22 16:48:14 +00:00
Christopher H. Laco 2be8d1e017 Implement Rubocop
Per the blueprint, finish implementing rubocop across the entire
cookbook, remove tailor references, and update rubocop dependency.

- Remove .tailor file
- Update Rubocop Dependency >= 0.16.0
- Update Chef Dependency to 11.8
- Add .rubocop.yml files to resources/providers
- Add resources/providers to Strainerfile
- Update all files necessary to pass rubocop

Change-Id: Icc4804b3e2a55cf6656b2e6077e36f04d959b9ef
Implements: blueprint rubocop-for-image
2014-01-14 16:11:11 -06:00
Matt Ray da33188d52 Use the image-api endpoint within the image_image LWRP for non-localhost uploads
Also updated the CLI glance usage to non-deprecated parameters. Immediate
service restart on the glance-api.conf template to catch updates to the
configuration.

Change-Id: I1f05bc367ccd06d2116e45f046897d9dff689f37
2013-11-07 11:05:34 -05:00
Craig Tracey c85a817fb6 Changed coobook name to openstack-image
Changed the cookbook name to openstack-image, fixed all tests, and
addressed attributes. Also addressed calls to external services,
primarily keystone -> openstack-identity.

All tests pass.

Change-Id: I6338342a570000b3fb0ae610f1a1bb5aa15ae3e9
2013-05-15 23:31:17 -04:00
John Dewey 44d46fc8e4 Added a batch of initial chefspec tests
* Added pending tests marked as 'TODO' for those which need figuring
  out
* Also added pending tests for template contents
2013-05-06 23:18:20 -07:00
Jay Pipes 45f2e9a7a6 Chef+Ruby local variable scope is retarded. 2013-04-12 13:25:26 -04:00
Jay Pipes 24c6d12c30 Reversed resource and provider :( 2013-04-12 13:18:34 -04:00
Jay Pipes f4f9fb5412 Makes the image registration/upload an LWRP
Adds a slightly modified version of the RCBOPS glance_image
LWRP. This cleans up a bunch of stuff in the glance::api
recipe and makes it much easier to read and diagnose.
2013-04-12 11:44:36 -04:00