Commit Graph

85 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 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 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
ZhijunWei 8142de7e19 Change openstack-dev to openstack-discuss
Change-Id: I3a42ded4e67249617fa68303bc47196aaf87807c
2018-12-04 23:21:03 -05:00
Samuel Cassiba 6e9924ea12 starting rocky development patch
Change-Id: Id6bde5efcf7574d6718301ffd02854418b34cf04
2018-08-03 06:38:40 -07: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 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
Jan Klare 8194db94e4 starting pike development patch
Change-Id: I9b5a5b1d94cb61dad2b26fb7653d2648dc2ebdfc
2017-08-17 14:19:36 +00: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 f28939297d starting ocata development patch
Change-Id: I53003813c63124da340209f0e4a35cc8583ce88a
2017-02-23 17:06:31 +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
Jan Klare 96ed4cf461 initial commit for the newton development cycle
Change-Id: I4160a062a6019c2d8f35d27464d9b7df973862b8
2016-05-31 10:34:11 +02:00
Jan Klare 643fcb2f30 update the README after refactoring and align it with other cookbooks
Change-Id: I5cb6fe4e0e63c042250dfaa11a9b0563f7f15a99
2016-04-28 15:17:15 -05: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
Jan Klare 85afa26821 update ceph cookbook to allow update of apt cookbook in other cookbooks
Change-Id: Ia0815db80e23e865771bced695067a5a95aa376e
Depends-On: I4ddebafeba997ef2d4e39197f7cd2e74c9bb43c5
2015-09-16 18:55:09 +02:00
JJ Asghar 3596f64911 Initial Liberty Changes
Metadata changes
- Updated maintainer email
- Updated the version

rubocop update
remove db2 refs

Change-Id: I9eb4afd32d777f99e22a2860bbded489790b6f9c
2015-08-28 22:56:55 -05:00
Mark Vanderwiel abc47a3bb5 Replace deprecated get_secret
Use get_password 'token' instead.

Partial-Bug: #1467662

Change-Id: I8c9ff7cb17fa1d945e794ee386d24c393ef97a10
2015-06-25 01:26:27 +00:00
Mark Vanderwiel 04121f81ad Allow rabbit mq kombu ssl configuration
Add the rest of the kombu ssl configuration options.

Change-Id: I3a26cc05456de06fbfc6ea6c4959e41bf5825b11
Partial-Bug: 1464706
2015-06-16 10:44:09 -05:00
wenchma c46945c8e9 Add rabbitmq max_retries and retry_interval attributes in glance conf
Oslo.message using rabbit_max_retries and rabbit_retry_interval to
define reconnect rabbitmq server times and interval when can not
connect to rabbitmq server.

Change-Id: Id205952829678a83b0ccd8e415c64cf1283e0e08
Closes-bug: #1439968
2015-06-12 14:54:10 +08: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 649d8fe587 Initial kilo updates
Change-Id: Ifbe6bec1726790ec07ba8ca8a4d4f6e6908dc70f
Partial-Bug: #1426424
2015-02-27 13:38:49 -06:00
Mark Vanderwiel 12977c0093 Switch back to pessimistic version constraint
Change-Id: I803e6d4aacc84e00c8724cd823aa57cc778da8e2
Partial-Bug: #1425192
2015-02-24 13:50:36 -06:00
Mark Vanderwiel fe39ee1918 Ceph should come from supermarket
ceph 0.8.0 was tagged in supermarket, cleanup to use normal
supermarket berks path.

Change-Id: I1413932129f391237fdeb2c3f37fe14853c597c5
2015-02-19 11:06:12 -06:00
Mark Vanderwiel 42a8444528 Put ceph version constraints on one line
Change-Id: I73ea4530d9f11a2b641771ef7a2d9eb2103cd828
2015-02-16 12:31:27 -06:00
Mark Vanderwiel cc7dddbd7a Missed bumping Common version
Change-Id: Ia9317e28a36c1a17ac52b0dd3f2d3d724756c347
Related-Bug: #1412919
2015-02-09 11:46:46 -06:00
Elliott Davis da05834a09 Add dependency on upstream ceph cookbook for better key management
The upstream ceph cookbook already hooks into chef for environment information.
This patch utilizes the client LWRP to create or add ceph keys for RBD support.
This patch also changes some default attribute names for more sane organization

Partial-Bug: #1409943

Change-Id: If37159524c237eec6ca1561e2979cd44e6dfac92
2015-02-05 06:32:42 -06:00
Chen Zhiwei 9708fb3f3e Make container_formats and disk_formats configurable
Since docker image format is not enabled by default in glance.
The cookbook should allow to configure docker image format in
glance api configuration file.

Implements: blueprint docker-configuration-support
Change-Id: I8ce16d3d4adb1c041edd4c6b603db16b7254a6c3
2014-11-19 15:09:43 +08:00
Mark Vanderwiel 4a0b2f2c8f Cleanup cookbook contact info
* Consistent email across cookbooks
* Add Contributor.md to help out new folks
* Fix broken link in Testing.md

Partial-Bug: #1342735

Change-Id: I884efecb57a43859969309943465a7ddf3ce6bb7
Partial-Bug: #1342735
2014-10-14 10:06:56 -05:00
Mark Vanderwiel d90e392cbd Fix metadata constriant for Common
A patch went in that needed attributes in Common and the image
metadata was change to ~> 10.0.1 which worked until Common
was recently bumped to 10.1.  The metadata for Common should have had
a minor version bump, not a patch bump for the new attributes.

Change-Id: Ie46a83ec7b59cb1895978296628e857302c290a8
Closes-Bug: #1373008
2014-09-23 11:07:58 -05:00
wenchma fca5fb5332 Set rabbit_use_ssl to a configurable attribute
Add ability to enable rabbit_use_ssl item can be configured,
and not only set false value, so make glance support ssl.

Change-Id: I36ef4676f408d1b40994988a8730ea23cbf3be5e
Closes-Bug: #1358138
2014-08-19 09:29:48 +08:00
galstrom21 5ce168c499 Setting up repo for master Juno Branch
* Update metadata version
* Removing Strainer file
* Adding Gemfile.lock to .gitignore
* Updating Gems
  * chef (11.12.0)
  * chefspec (4.0.0)
  * rspec (3.0.0)

Change-Id: If0a375f050f1840256565e1af208a9eeb4c42f1c
Partial-Bug: 1349865
2014-07-29 11:21:39 -05:00
Ionuț Arțăriși 85a9c8b80c use new python_packages attributes from -common
*_python_packages attributes are being moved to -common in order to
remove the duplication from all the cookbooks which are using them

Change-Id: Ie26ceb713ad07f28d70a6711198a229cd45f777a
Implements: blueprint move-python-db-client-attrs-to-common
2014-06-26 11:54:11 +02:00
Matt Odden 01eb8e9078 Add missing AMQP options to glance-api.conf
Add more AMQP and QPID configuration options
to the glance-api configuration file. This enables
users to use QPID federation support and also
use durable queues for rabbitmq or QPID.

Change-Id: I2bdc0f713c7363966a192bfce9b59b3f312532d1
2014-06-19 20:49:30 +00: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
Chen Zhiwei d7c959610e Data Bag items must have an id matching /^[\.\-[:alnum:]_]+$/
Data Bag items must have an id matching /^[\.\-[:alnum:]_]+$/
But in recipes/api.rb file, it is "service:glance".

Change-Id: I0aef71c10cc6d7ca30d58c168044c4dbbcfafad1
Closes-bug: 1319286
2014-05-14 03:57:19 -04:00
gengjh d9e2d2950f Get the vCenter password from databag for glance
1. Add new attribute openstack_vmware_secret_name to indicate the
databag secret key
2. Get the password from databag if dev mode is false
3. Update the test cases

Implements: blueprint vmware-password-databag

Change-Id: I72f538a16d77cba9c1be9f32e0b37d1ee68e3bbc
2014-05-09 22:22:50 +08:00
Mark Vanderwiel 406fa4fa81 Image services need keystoneclient not keystone
The service recipes have been pulling in the entire
python-keystone package, which is the entire Keystone
set of services. This hasn't been necessary since
some time after Grizzly, when the tokenauth middleware
was moved to the client.

Change-Id: Ice189991bab0b69eb4df42e968d31d93cb623bb8
Related-Bug: #1305318
2014-05-06 10:30:04 -05:00
Mark Vanderwiel 90bf06ab0b Allow packages to be updatable
In order for package updates to occur, package resources need to use
the upgrade action.  This is first phase of blueprint, to get some
consistency, next phase is to allow some update control.

Change-Id: Id4d2bebc9ddfce4c641828129c7157616c1174f0
Implements: blueprint allow-package-updates
2014-05-05 10:41:47 -05:00
Mark Vanderwiel 50cc4e97e8 Remove policy json file
Remove the policy.json template, as they contain no templated variables.
This would allow use of the policy.json files provided via the package,
and decrease the need to sync them with upstream

Change-Id: Ib7833e6d503de09ec93db5de8f85cca2ab8f463f
Implements: blueprint remove-policy-templates
2014-04-30 14:36:22 -05:00
Mark Vanderwiel 52d2248e7f Icehouse branch version updates
Change-Id: I129d1986812940ecf09f1711ed8795039129421c
2014-03-27 11:22:19 -05:00
Chen Zhiwei 11c7a38321 Fix DB2 ODBC driver installation issue
There is an LWRP in db2 cookbook to install ODBC driver,
so need to move this driver installation to db2 cookbook.

Change-Id: I35e7a81cab8ed5cdc9aa6e3dfd295d86f6f01058
Closes-bug: 1294376
2014-03-21 02:48:11 -04:00
ericzhou bff5397cc3 Use the common function auth_uri_transform
Auth uri transform logic has been moved to the common cookbook, so in
the image cookbook, the common fuction is used to transform the logic.
Another option auth_version is added to template.

Change-Id: If0fdf86c48f5b4860d8b488dd7ee16ca199e1536
Imlements: blueprint move-keystone-authtoken-move-auth-uri-logic
2014-03-20 16:54:47 +08:00
Mark Vanderwiel e9a6523d88 Add client recipe for image
Add an explicit recipe for installing client
only packages.
Tests are also included.
Bumped minor version for this new feature.

Change-Id: I12808f895757e99d2d60bdb0e8fd85dcd3f8f026
Addresses: blueprint add-client-recipes
2014-02-12 12:35:26 -06:00
Matt Ray 19e2e1f253 Filling out initial rubocop support for metadata.rb and the Gemfile.
https://blueprints.launchpad.net/openstack-chef/+spec/lint-and-unit-testing-for-havana
Removing tailor, cleaning up metadata and Gemfile and adding TESTING.md. Will
remove the .rubocop-todo.yml later, once all the other Rubocop support is in.

Change-Id: I44e3e5002b4e152080a01a36ae08451cc2ee0751
2014-01-09 16:07:27 -06:00
Eric Zhou bc3b8270b6 Move image upload part from api recipe to new recipe of image_upload.
Since for bug 1257169 openstack-image api recipe should be executed before
openstack-image registry recipe, the image upload part in the api recipe need
to be moved to a new recipe of image_upload.

Change-Id: I1f557d2e817643a9e3e06788dc446c970ef2df89
Closes-Bug: #1257169
2013-12-16 10:39:36 +08:00
galstrom21 900c9eef12 Updating to Havana
* updating ChefSpec -> 3.0.2
  * updating Foodcritic -> 3.0.3
  * updating Berkshelf -> 2.0.10

Change-Id: Ie332b69bc617a6b99b7ca7af2f5b33dbb75a05dc
2013-12-11 10:16:45 -06:00
Matt Ray 46c86ac9f9 Relax the dependency on openstack-identity to the 7.x series
openstack-identity is now on 7.2.0, which doesn't get picked up because of the
strict dependency of the 7.0.x series.

Change-Id: If374c256fbe15d6bc5f4eb19fd800eacd87a0f7a
2013-12-02 15:23:57 -06:00