Commit Graph

434 Commits

Author SHA1 Message Date
OpenDev Sysadmins b309d7869b 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
Samuel Cassiba 6f8ac1a83a Migrate Zuul jobs to openstack/openstack-chef
Change-Id: I4582139628a5e573212c9bc6dd762632787cbbe7
2018-08-31 23:28:15 -07:00
Samuel Cassiba 8ae8d83c48 stable/pike release
Change-Id: I8eb1b9ecc95d976019998d44063f57aa98b5cdc8
2018-02-26 07:32:31 -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
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
Mark Vanderwiel a0de93e9ca Cleanup options deprecated for mitaka
Some options have been deprecated for Mitaka, replace them with the new
variants.

Change-Id: I1e05f7c1d3e604389b90c66931af153a5861e433
2016-04-13 12:17:05 -05:00
Jenkins c5f518bd75 Merge "Use admin user for glance uploads" 2016-04-08 08:01:53 +00:00
Mark Vanderwiel a2ee560a2b Restart glance immediately
Since glance could be used to upload images,
make sure it's restarted immediately within the recipe.

Change-Id: Ie4a742a2a8aaeeec2886fcc0513e654d0237997c
2016-04-07 10:23:32 -05:00
Mark Vanderwiel 4a0a8ff298 Use admin user for glance uploads
I think it's more correct to use a normal user, admin,
to upload images, instead of using the service accounts.

Change-Id: Ifb1411a4392d04cd9a5e867ffc95327adf4ea4ea
2016-04-07 13:59:20 +00:00
Jan Klare 0efcf40fd3 Fix bootstrap.sh
On recent test machines, curl isn't available anymore, so use wget
instead. Piping directly into bash isn't that great anyway.

Change-Id: Ie8dc2c9dacbd5f64fbad47b176a88e053e2e8ae5
2016-03-15 16:17:18 +01:00
Christoph Albers 3298fe78a1 invert the order of endpoint and bind_service attributes
* endpoint type (admin, internal, public) and service (identitiy, network etc.)
  was switched during refactoring, this patch reverts this unintended switching
* edited bind_service service type from public,internal,admin to 'all'
  for default binding to just one service
* use bind_address method from common

Change-Id: I4f97b659361dabd7fac216305d2aad2f1bb98f51
Depends-On: Iec485deaf415e4187a323435cce2b6bbadfc5d42
Depends-On: Ia5bddfc5e2fd77cd6e9e855c680b079f78fc1c3f
2016-02-16 16:36:05 +01: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
Samuel Cassiba a2bbb0bd87 Update CirrOS and CentOS qcow2 image locations
This updates CentOS to 7.1 and CirrOS to 0.3.4

Change-Id: I0a9fb5ca33979c5c4f8e7d7acf23cf3bcfcb7eec
2015-10-09 09:02:17 -07:00
Jenkins 0156c46fee Merge "Add integration task" 2015-10-06 20:39:37 +00: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 ee0e862d2e Add integration task
Add missing gate integration task, but use the one from
Common cookbook to make future updates easy.

Change-Id: Ieeb59c9cd51b26300366944dcd30cdc207f90bd7
Depends-On: I4834e9557b07db05591b78d28ef27a6046e4c0f0
2015-10-01 15:35:10 -05:00
Jan Klare 6905c719b9 create cache dirs for api and registy
* current logic with 'directory ::File.dirname node.attr' will create resources
  with the same name 'directory '/var/cache/glance', but different parameters
  (so only the first one will be executed) (recipes/api and /registry)
* fixed logic and specs to actually use the full node attributes and create the
  two caching directories

Change-Id: I6289bf7a8b7b1a998ad4cefef04021ec02fe4172
2015-09-28 12:55:21 +02: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
Lan Qi song 17bd6c9c7c Json file should without chef banner
The format of the default chef banner is not considered as a comment in
json file. The comment for json file should start with "//" or "/* */".

This patch remove the chef banner in glance metadata template.

Change-Id: I70d3f3d5d03704880c66a850a38441084154a62e
Closes-Bug: #1485893
2015-08-18 08:34:25 +00:00
Lan Qi song f707472c4c Ability to auto generate the filesystem store metadata file
After this path has been merged : https://review.openstack.org/#/c/190265/
The compute service has the ability to copy the image data from the mountpoint
directly which can save image download time.

This patch make the metadata file can be generated automatically if user
specify the id and mountpoint.

Change-Id: Ibd4cc2d15a97f8018fc7f0aa19e4f2c9d1da285c
2015-07-13 23:30:29 +08: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
Jenkins 4024cbc13e Merge "Use correct endpoint scheme for api to registry connection" 2015-06-24 01:51:57 +00:00
Mark Vanderwiel 3ede834e41 Use correct endpoint scheme for api to registry connection
The ['openstack']['image']['ssl']['enabled'] was being used for
both the API/Regsitry services AND the APIs internal connection
to the registry.

Need to allow for separate control for enabling SSL for API and Registry.
Added attributes to cover this.

And the APIs internal connection to the registry needs to be
configured correctly based upon the Registry's internal endpoint scheme
(http or https).

Change-Id: Ieed28ad891192d81356c0d40ba48d70517087950
Closes-Bug: #1462388
2015-06-22 14:29:11 -05: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
Jenkins b2dc2318e7 Merge "Allow oslo rabbit heartbeat configuration" 2015-06-15 17:28:58 +00:00
wenchma 5239565718 Sync stackforge/cookbook* to openstack/cookbook* for glance cookbook
Change-Id: I6731522ca0327c3b3b328d84efede167537cf588
Partial-Bug: #1465116
2015-06-15 15:21:29 +08:00
Mark Vanderwiel 2f6516755a Allow oslo rabbit heartbeat configuration
In order to allow components to better handle and respond to mq failures,
oslo has some heartbeat options that are useful.

Change-Id: I41b3fc4699a4f285e9fcb066da55bb8a7f1361a2
Partial-Bug: #1462438
2015-06-15 03:07:15 +00:00