Commit Graph

178 Commits

Author SHA1 Message Date
Ghanshyam Mann 7696ada9d2 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: Ifae4bf9ef4e6b4c89571f9fc3c45ef3f5349fb4d
2024-02-17 20:49:42 -08:00
Lance Albertson 8343638fc1 CentOS 8 support
- ChefSpec updates

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/815147
Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-compute/+/815173
Change-Id: I17fc8fafd977c8412f8e9519642ccbcd427c2949
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-24 12:03:51 -07:00
Lance Albertson 2f13299f3e Chef 17 support
- Remove bind from Berksfile
- Update copyright years
- Require Chef >= 16.0

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

Change-Id: Ie25e1a6521360540c044d8f58a76c4e9f660696a
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-07-15 11:05:41 -07:00
Lance Albertson a74874b196 Update to Chef Workstation 21.2.303
Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/779389
Change-Id: Ifb6811b02ec226bfde269a0d23028a8c8e4d0d6d
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-03-08 16:19:50 -08:00
Lance Albertson 5178e1c937 Cookstyle 6.19.5 fixes
Depends-On: https://review.opendev.org/756168
Change-Id: Idfa343580b1dce6860d522ca62b63b818353aab8
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 17:29:04 -07:00
Lance Albertson d6844783ea Chef 16 updates
Depends-On: https://review.opendev.org/747556
Change-Id: Ic4ddb3c0f4b840578ee074c1279330db5822bfa3
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-08-27 17:38:00 -07:00
Lance Albertson a23298670b Updates for Train
Changed:
- Update release to train

Removed:
- Unused rubocop rules

Change-Id: I9e8f6ed90089a98b9cdb05bd1d468a57ec0bd30e
Depends-On: https://review.opendev.org/731859
Depends-On: https://review.opendev.org/731865
2020-05-29 18:03:52 -07:00
Lance Albertson 0d15f40999 Stein fixes
- Cookstyle fixes
- Refactor Berksfile to use groups so we can exclude integration testing
  cookbooks
- Update documentation
- Cleanup line wraps
- Enable sensitive resources for the template[/etc/heat/heat.conf] to
  resources improve security.
- Update delivery configuration to exclude integration cookbooks
- Fix ChefSpec output.
- Add missing ChefSpec tests
- Switch package installations to send packages as arrays instead of individual
  package resources. This generally speeds up chef runs.
- Cleanup array syntax using %w() instead of []

Depends-On: https://review.opendev.org/701027
Depends-On: https://review.opendev.org/706101
Depends-On: https://review.opendev.org/706151
Depends-On: https://review.opendev.org/706157
Depends-On: https://review.opendev.org/708059
Depends-On: https://review.opendev.org/713285

Change-Id: Ifb3a9de9eecc370e46f43a73ed77008a7b21594b
2020-03-19 11:31:45 -07:00
Lance Albertson dbf60084f5 Include missing cookbooks in Berksfile
This is for individual cookbook integration testing.

Depends-On: https://review.opendev.org/702772
Change-Id: I381af7639cc0d0a834c391b1b12f26ef7300bb4d
2020-01-30 13:10:28 -08:00
Lance Albertson 8b478fbe41 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.

Speed was improved from 5 minutes 36 seconds to 48.07 seconds

Change-Id: I4e88431d863450b6f41d6711612bfb12d4024683
2020-01-06 14:59:12 -08:00
Lance Albertson 0b218495a9 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: If47b6b8c525c92a9421468e371c22f210b7f5e80
2019-12-06 11:29:44 -08:00
Zuul 2a91191afd Merge "Use python3 packages on Ubuntu" 2019-11-25 15:02:39 +00:00
inspurericzhang 1563e11db3 Replace git.openstack.org with opendev.org
Change-Id: I55d1deb2697adef35e4c74df979d06049cd2f1e1
2019-11-19 18:22:56 +08:00
Lance Albertson d98d4a9757 Start heat services in addition to enabling them
I noticed this was missing during some upgrade testing when I noticed the heat
services didn't start back up after shutting them down for the upgrade and
running chef. I'm not sure why this was set to enable only.

Change-Id: I8048270047767bda7414b2baee176f7bc9ab7a8b
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-10-12 11:25:35 -07:00
Jens Harbott 8dfd60f6ec 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: Ic989d9b4c20b6e578e96394dade4e7bef5ae6b58
2019-09-19 12:15:26 +00:00
Lance Albertson cd52c71b6c Fixes for fog-openstack, admin endpoint and common pkgs on Debian
This provides a collection of fixes required to converge properly:

- fog-openstack-1.x already appends "auth/tokens" so we no longer need
  to do that
- Remove references to deprecated
  node['openstack']['api']['auth']['version'] attribute
- Remove creation of admin deprecated endpoints
- Add python-heat to common packages on Debian system so that the
  heat-manage binary is available
- Remove and refactor use of deprecated identity_uri_transform function

Change-Id: Idfd9aed09ccd5c3871cac71dbe0b51c921f1ec0e
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-08-05 14:37:22 -07:00
OpenDev Sysadmins 40b5466c8a 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:49:00 +00:00
ZhijunWei c880cd18b2 Change openstack-dev to openstack-discuss
Change-Id: Ic8d3729829b85212514d45776164b05fb82b2669
2018-12-04 23:21:08 -05:00
Roger Luethi dd41637548 Add openstack-orchestration::dashboard recipe
Starting with Queens, upstream has moved the Orchestration (heat)
dashboard from the main dashboard package into a separate package.

backport: queens

Change-Id: Ifb2018623bd4df250c2d3d8c5a7473f6cff94fe8
2018-10-31 08:44:40 +01:00
Samuel Cassiba a91f0a64ff Rename openstack-chef-repo references to openstack-chef
Change-Id: Id74e15dce549ad1f2a800340e2172abd25d8eb99
2018-08-06 21:50:21 -07:00
Samuel Cassiba 5d36a509ba starting rocky development patch
Change-Id: Ifcb2cb9d3c3653cb7e41845af42e25ff7fa70772
2018-08-03 06:41:57 -07:00
Samuel Cassiba 0fb71ae5d8 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: Ic70e3adc4615b3a79a49f8cd739d7505efee91ef
Implements: blueprint simplify-identity-endpoint
2018-06-14 19:16:04 -07:00
Samuel Cassiba b9af23547c Add delivery config
Change-Id: I9c79346d43770c3c19eab28af4a39cc746c29ff9
Implements: blueprint deprecate-rakefiles
2018-04-11 22:39:03 -07:00
Samuel Cassiba 5b2632d052 Remove deprecated cloudwatch recipe
* Queens removed cloudwatch outright[0], which has been deprecated since
  Havana.

[0] http://lists.openstack.org/pipermail/openstack-dev/2017-October/123104.html

Change-Id: I4cd53d7aed179787d192d6342ec44fea9332fb66
2018-03-13 08:52:23 -07:00
Samuel Cassiba 9751d5545b 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: Iddb51ac401737a7a453560f03ff8dc468b1b67a1
2018-03-06 12:29:29 -08:00
Zuul f83d415602 Merge "Zuul: Remove project name" 2018-02-01 04:50:12 +00:00
Samuel Cassiba 40e115b66b Removed unused tests for deprecated RDBMS flavor
Implements: blueprint modern-chef

Change-Id: I6314c58d53c1d9a536191f62bde9cd820ddbfdad
2018-01-30 06:48:10 -08:00
James E. Blair 8ecaa85489 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: Ib754a14335fc80fdf1ca292c8c98dfb101a3f58b
2018-01-28 14:45:12 -08:00
Samuel Cassiba 2bcd59a687 orchestration refactor for Pike and Chef 13
- implemented foodcritic and cookstyle corrections
- deprecated node.foo.bar method access for node['foo']['bar'] bracket syntax
- added interface for internal endpoint
- moved dpkg options to common cookbook

Implements blueprint modern-chef

Change-Id: I361aed3d84a6e7225d7d803f1855ce37da568eac
2017-12-10 12:32:19 -08:00
Roger Luethi 37737b68c1 Add comments to identity_registration.rb
Change-Id: Idc55def9c744a9af2780cd99addb7cb66393606e
2017-11-16 02:05:30 +00:00
Roger Luethi dc2d594b05 Grant admin role in heat domain to heat_domain_admin
This patch grants heat_domain_admin the admin role in the heat domain
(rather then in the service project).

We use :grant_domain instead of :grant_role, because we are setting a
role in a domain, not in a project.

Note that for the user to actually exist in the heat domain, a
sufficiently recent openstackclient cookbook is required -- otherwise
the domain_name attribute is ignored during user creation.

Also, we remove the user_name attribute (gets ignored by resource
action).

Change-Id: I747e2dedbc517cc3deb2675590fb982459c560a0
2017-11-15 21:36:05 +00:00
Roger Luethi 00341ef50a Remove domain role from heat 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 heat user
the role intended for its 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 heat 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 heat user is to be created
in the Default domain).

Change-Id: Ifa3d344a3d9094dd1272b126a4dc9ab951c00972
2017-11-13 15:07:33 +00:00
Roger Luethi b3983a8bd6 Add spec test for creation of stack domain admin
Change-Id: I05179189cc71fb2d09ad67291e61fae1708ae4b5
2017-11-13 09:39:16 +01:00
Roger Luethi 48fdd181f9 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: Ic45dd42453d9f8ae2a8c4d04f830cff67740cac6
2017-11-13 09:34:17 +01:00
Zuul 20d299964d Merge "Add native zuul v3 jobs defined in openstack-chef-repo" 2017-11-03 05:41:23 +00:00
Zuul e7cc27fab1 Merge "Remove duplicate resources" 2017-11-02 20:19:49 +00:00
Roger Luethi fb1c143c65 Change deprecated auth_plugin to auth_type
In the keystone_authtoken section, the key has already been changed
from auth_plugin to auth_type. This patch does the same for the trustee
section (see [1]).

[1] https://docs.openstack.org/heat/pike/install/install-ubuntu.html

Change-Id: Idd82170107043bc2497261c34859844343e783a1
2017-11-02 16:12:00 +01:00
Jens Harbott 05ec81a1ac Add native zuul v3 jobs defined in openstack-chef-repo
Change-Id: If2578cf642da14f1a0aa2f30be1c908f28171ccb
2017-11-02 10:42:28 +00:00
Roger Luethi 306f79c0b8 Remove duplicate resources
This patch removes duplicate resources from identity_registration.
Identical definitions can be found in the same file.

Change-Id: Ibabac07a86154829a1eb2a5deccc70bf50030c45
2017-10-30 13:47:16 +01:00
Seb-Solon d8f3af044e Replace platform_family method and use attribute instead
platform_family method is not working on latest Chef versions

Change-Id: I527f6ec23b38e149d51f00e7a214aded95a14bd8
Partial-Bug: #1724987
2017-10-28 15:44:36 -04:00
Christoph Albers cb26f25be4 Heat Fixes
- currently non-admin user aren't able to create stacks with i.e.
  Resource OS::Heat::SoftwareDeployment
- added heat domain
        heat domain_admin
        heat_stack_owner and user role
- added missing configuration options
- fixed some smaller ruby /cookstyle offenses
Change-Id: I6ae544dcc6260050304e66e227383e0e944a6bb6
2017-10-06 10:21:54 +02:00
Samuel Cassiba 032dd3c51a Initial orchestration Pike updates
- Switched default linter to cookstyle
- Renamed rake tasks to better conform with Chef conventions
- Normalized template banner

Change-Id: Icc3eca4b2d17a6d1ef66c1c7e75513de0ee3cac9
2017-08-25 10:08:57 -04:00
Jan Klare 1a46445152
starting pike development patch
Change-Id: I5bc48f1e9585ef3729d9df0d34c88095d28eb724
2017-08-18 10:09:41 +02:00
Samuel Cassiba df79bb4fe9 Reordered metadata.rb for readability, satisfy foodcritic/rubocop
Change-Id: Ib1a753696982f2e3cce133bd6bd56c4c8fa25bc5
2017-08-17 18:00:09 -04:00
loooosy def587e618 Optimize the link address
Use https instead of http to ensure the safety

Change-Id: Ic929a5bd9e6ec5466f1118ccb631c36f4e408443
2017-06-02 09:36:47 +08:00
Jan Klare ca8071eb86 add new Chef OpenStack Team Logo to README
Change-Id: I57846bc83272d2865bbb0d7de539a787aa5d90cc
2017-05-29 10:53:08 +02:00
Jan Klare 9531704451 starting ocata development patch
Change-Id: Ibbbfc1008f9e7688466431ab1168740c97f162ee
2017-02-23 17:07:12 +01:00
Christoph Albers 4f2e23c62d Newton / Identity V3 fix
- added user_domain_name attribute for trustee section

Change-Id: Ie88e3c3288fb7d4b3f9c2ef91e668e5fe4149062
2017-01-02 15:02:23 +01:00
Christoph Albers e00cf744d2 RPC_backend / transport_url workover
- removed deprecated rabbitmq attributes
- added rabbit_transport_url

Change-Id: Id1fa34e55c556ffae2a6200bb7138f11808a3abf
2016-12-20 11:45:40 +00:00