Commit Graph

46 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 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
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 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
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
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 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 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 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
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
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
Samuel Cassiba b547aaa80c Deprecated python-heatclient
- deleted client.rb
- deprecated python-heatclient references

Implements blueprint newton-xenial

Change-Id: I54d8190f77b7731dfb518871f080f62718cedc47
2016-12-14 20:06:29 -08:00
Christoph Albers f2c3db560e 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

Change-Id: If5c3758c786b2d11cec6d64dc57530367acd2976
Depends-On: I0f8955f05de9b33711c54b9a198f45018cceb8e1
2016-09-30 11:59:53 +02:00
Mark Vanderwiel d6d787d4b9 Cleanup options deprecated for mitaka
Some options have been deprecated for Mitaka, replace them with the new
variants.

Change-Id: I98e8e82668501a34f27f38f9c9a8770d63ee3604
2016-04-13 14:11:46 -05:00
Jens Rosenboom 5d70ac53fa Refactor using new style
* use new logic for heat.conf template
* move all attributes that are used in heat.conf to
  attributes/heat_conf.rb
* remove all attributes that are just setting default values
* add new default attributes so that the authorisation setup will be
  functional again
* refactored endpoint and bind_service logic to fit the new common
  cookbook
* adapt specs accordingly
* removed qpid as a messaging option (can be included in a wrapper)
* removed fedora as supported platform
* removed deprecated Gemfile
* removed logic for setting up a dedicated domain for Heat, should be
  done in a wrapper
* update README.md accordingly (still incomplete)

Implements: blueprint cookbook-refactoring
Change-Id: I16a29e28068d106f0edcbe04cb529aabbbed1ac5
2016-03-08 12:27:39 +01:00
Mark Vanderwiel 2ae14f7965 Update centos/redhat/rdo package names
Update the package names

Change-Id: Ica917bce1932bca9b88b02c5af4bddc6e746acde
Closes-Bug: #1483812
2015-08-11 18:24:33 +00:00
Ethan Lynn 0170665c67 Make auth_uri attribute for ec2authtoken section
Make auth_uri attribute for ec2authtoken section

Closes-Bug: #1480818
Change-Id: I6b3018317e6c4890d193aee6f6b5e101d901e687
2015-08-04 12:57:02 +08:00
Mark Vanderwiel ffe3f30c05 Add worker config support
Allow the various workers to be configured as attributes.
The engine one is based upon cpu, so default is nil just like
in Compute.  The others default to zero, so used that.

Change-Id: Id7382ceeb4daeb6136e4b10546eed26901fbc3eb
Closes-Bug: #1452734
2015-05-08 10:09:17 -05:00
Ethan Lynn f9b8b4b9ba Set default value for log_dir in heat.conf
When use_syslog is false, heat will use log_dir to store log files,
but default value of log_dir is none in heat, so heat will output
log to stdout.
This patch set the log_dir's default value to /var/log/heat/.

Closes-Bug: #1446963
Change-Id: Ia53b557d56662994e095ccd1e2c3ca583460b55d
2015-04-22 14:17:56 +08:00
Jenkins 01e030abaa Merge "Use new "service" role instead of "admin"" 2015-04-06 15:25:26 +00:00
Mark Vanderwiel c8f98f0655 Use new "service" role instead of "admin"
Partial-Bug: #1436050

Change-Id: Ib2d20e95ad44a61f6d68ecd0726b9f29cc0bc595
2015-03-25 08:13:07 -05:00
Ethan Lynn 0a75e91d11 Add attribute for stack_scheduler_hints
Add attribute for newly option stack_scheduler_hints, related
commit is https://review.openstack.org/#/c/96889/ .

Change-Id: Ib02ff0ec8e1713f701737fa7ac95a91dd810eb01
2015-03-24 21:41:21 +08:00
Ethan Lynn 98b51e2e64 Allow attribute for deferred_auth_method
We should switch to using deferred_auth_method=trusts by default,
for the following reasons:
- It's more secure, we won't have to store username/password anymore
- It's better for users, because they won't have to provide a
username/password anymore, e.g the box in horizon where we force
them to enter a password even though horizon is already passing
us a token.

Change-Id: I04634d065c785a13991a9a4ac76e544d7a6f34fe
Closes-Bug: #1429722
2015-03-10 14:32:50 +08:00
Mark Vanderwiel 8b8693b9be Allow attribute for stack_user_domain_id
Change-Id: I69fa92ccd2f274fd14dded07404a682c7cbe9f25
Related-Bug: #1369654
2014-11-12 10:18:55 -06:00
jun xie 54bb483c5d clients_XXX section configurable
This commit makes the [clients_XXX] section in heat.conf configurable.
They will get set with the default values from [clients] section.

Closes-Bug: #1386125

Change-Id: I6d4d4a79e038f5533b46ce555f5838efb0c8f1c8
2014-11-03 15:00:19 +08:00
Chen Zhiwei eeff4d73a0 Adds misc options
This change adds support for miscellaneous options to be set.
Things that haven't been added as attributes, or specifically,
third party additions that don't belong in stackforge.

Change-Id: I482c5d15e5d1ad853d1a1792f3e39a45f7911dd4
2014-10-30 16:47:07 +08:00
jun xie d1d2c9c7ad Add clients configurations for Heat
This commit adds some clients configurations for Heat into cookbook
so that they are configurable.

Change-Id: Ie8db8238cd75e99bd4c6942a82f1734777c91966
Closes-Bug: #1381907
2014-10-21 22:55:16 +08:00
Mark Vanderwiel 0474c549e2 Create role and domain setup for heat template defined users
To setup heat for template defined users, several identity registration
steps need to happen.  The first is creating the role for it.
This can be done with the current identity registration provider.
The next three steps (doc in the code as todo) deal with the domain and
requires keystone v3 (bug-1267137). These are handled by a script shipped
with heat, heat-keystone-setup-domain.

Change-Id: I74154ccae609526ec92b916bac4ff8bc60aed170
Related-Bug: #1369654
2014-10-09 14:55:54 -05:00
Mark Vanderwiel 20c63bb66b Add attributes for role and domain info
Change-Id: I439a5f77325833e3e4e23778d453af4542fe64ef
Closes-bug: #1369654
2014-09-26 15:31:16 -05:00
leileiz 6e534d6070 Add some authtoken related attributes
This change adds some attributes into the cookbook so
that they are configurable. It mainly includes:
cafile, memcached_servers, memcache_security_strategy,
memcache_secret_key, insecure and hash_algorithms.

Change-Id: I6d38db321da2d86265bace3d36c68ddcb196ed61
Closes-Bug: #1372315
2014-09-22 18:32:29 +08:00
Ionuț Arțăriși 744c309388 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: Ia0d26ef915dc27b8654d1ed0dec63b2ecef05743
Implements: blueprint move-python-db-client-attrs-to-common
2014-07-02 16:17:39 +02:00
Mark Vanderwiel ea9b5d3632 Add notification attributes
Add attrs related for notification
Add tests

Change-Id: I559d4d610cd63a78e783fb57922012cf97ec6ad6
Closes-Bug: #1306703
2014-04-17 13:58:34 -05:00
Luis A. Garcia 8d2cc01705 Use platform_family instead of platform
This will allow the ibm_powerkvm platform to be recognized and will
simplify uses of multiple platforms from the same family.

Change-Id: Iebf2aad9f3b4649fb5c27d2fc93ee60c67e42737
Partially-Implements: blueprint add-ibm-powerkvm-enablement
Implements: blueprint platform-family
2014-04-08 14:09:34 -07:00
Chen Zhiwei 6b9df49443 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: I309bac0e5fdf0abb110210069e731ff260679a3c
Closes-bug: 1294376
2014-03-21 03:21:03 -04:00
ericzhou a2933a98f9 Use the library method auth_uri_transform.
Change-Id: I260ac1603a77ffe0390a5bd40aa98491f7e94f41
Imlements: blueprint move-keystone-authtoken-move-auth-uri-logic
2014-03-14 23:56:24 +08:00
Jenkins a2d71d00b4 Merge "Utilise ['openstack']['region'] from cookbook-openstack-common" 2014-02-24 18:38:36 +00:00
Jenkins ee413a7624 Merge "Add client recipe for orchestration" 2014-02-24 18:23:08 +00:00
Andy McCrae 8bcb692655 Utilise ['openstack']['region'] from cookbook-openstack-common
- Set ['openstack']['orchestration']['region'] to equal ['openstack']['region']
- Add tests for endpoint creation, to confirm region is set.

Change-Id: Ie882f6da89f8e6a4324f7f19d3c9582671610629
Addresses: blueprint uniform-region
2014-02-17 14:42:23 +00:00
Mark Vanderwiel eab9f60603 Add client recipe for orchestration
Add an explicit recipe for installing client
only packages.
Tests are also included.
Bumped minor version for this new feature.

Change-Id: Ia2e4d15fbe63e1a02fb0078b1976b46b48a7e13a
Addresses: blueprint add-client-recipes
2014-02-12 15:08:57 -06:00
hanzhf 78d582630c Add db2 python packages for heat database support
Change-Id: I62d7c4e1b5e9d3119e523521f000c82cd2569045
2014-02-10 16:50:20 +08:00
Matt Thompson 10a3aa27fd Clean up cookbook for bp/clean-up-attr-for-mq-and-db
This change removes the attributes we'll be moving to openstack-common
and changes reference of those attributes to reflect new (more
consistent) namespace.

Also remove Berksfile.lock so that updated version of common cookbook is
used.

Change-Id: I6d6b3849671d56d337aced0f8288b6a201f80ac0
Implements: blueprint clean-up-attr-for-mq-and-db
2014-01-28 22:36:26 +00:00
Matt Ray 068ed603ed Initial Rubocop cleanup.
Change-Id: I6f7c659e4f9ea9fa959a9917e4cf9d5e7acb16af
Addresses: blueprint rubocop-for-orchestration
2014-01-15 23:16:42 -06:00
hanzhf 0b81a7b037 Add cookbook support for Openstack Orchestration
This new cookbook supports the installation and configuraiton for heat services.
More pedantic patches will follow to make Rubocop happy.

Implements: blueprint heat-support

Change-Id: I8b734b7124c49190a68acc4d0da28a31da03ac57
2014-01-15 15:25:21 +08:00