Commit Graph

50 Commits

Author SHA1 Message Date
inspurericzhang 2569ac0f34 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: If732a5e840a7080691097e429e692a18f5286db6
2019-12-03 12:23:53 +00:00
Jens Harbott 6fd3db1717 Drop admin endpoints
The admin endpoints offer no special functionality, users may talk to
the public endpoints instead. The only historic use case has been the
keystone v2 admin endpoint, but with keystone v3 API, even that is no
longer needed.

Also drop the attribute for setting an auth version, as keystone only
supports v3 now.

[0]
https://opendev.org/openstack/openstack-chef-specs/src/branch/master/specs/ocata/all/drop-admin-endpoints.rst

Depends-On: https://review.opendev.org/656289
Depends-On: https://review.opendev.org/656514
Depends-On: https://review.opendev.org/656518
Change-Id: Id8fa969af80bcb1cb6f3ce743b1861f26c36523f
2019-04-30 13:55:33 +00:00
Samuel Cassiba baae0be8b8 Rename openstack-chef-repo references to openstack-chef
Change-Id: I921d5f7d6de40bdd3b692654a22ae04c67b0ab87
2018-08-06 21:49:17 -07:00
Jan Klare eb465b4f68 add new Chef OpenStack Team Logo to README
Change-Id: I9ffb05a7edefbf0bf6011075e17aa4b8b415ede2
2017-05-29 10:53:07 +02:00
Flavio Percoco a11afa3feb 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/d4d2fd2d2f8601376c9deb5bab64ba9f

Change-Id: I8cb94e130e0e9f41304c13352b125224fe7030e2
2016-11-26 11:55:52 +01:00
Samuel Cassiba 51ac5f8b9f Style and lint fixes to support newer ChefDK
- bumps ChefDK release to 0.15.15 in bootstrap

Change-Id: I6ce4587caa3ae68ddbd3ef1a521aaf46f4840b2c
2016-07-01 18:16:19 -07:00
Jan Klare ea09cf8964 Updated README and added small section to explain usage of config attributes
* The section about service conf attributes should be linked from all other
  cookbooks

Change-Id: Ic16ff449c632db95789a44cb08d81b1537bc491e
2016-04-28 15:26:47 -05:00
Jenkins 8d37e1c07e Merge "replaced libraries/database with lwrp" 2015-06-15 16:45:38 +00:00
wenchma 4af09ce9d1 Sync stackforge/cookbook* to openstack/cookbook* for common cookbook
Change-Id: I49c1c2fd911c105a8d3204a351c49ccb05618ba0
Partial-Bug: #1465116
2015-06-15 17:15:53 +08:00
Jan Klare 2aa0ab9115 replaced libraries/database with lwrp
- defined lwrp openstack_common_database
- removed libraries/database.rb
- created _openstack_common_database_spec.rb recipe for testing the
  provider
- comments for db2 in provider since this resource does not exist in any
  availabe or linked opensource cookbook
- updated README.md

related-Change-Id: Idb47c9b7e3ce954ddd1a544b71b96eed734e46e5

Change-Id: I1940cd63aa1ae95586e6ecbed9476f7ce5fe19ab
2015-06-08 10:58:13 +02:00
Mark Vanderwiel 71ac7945ae Create bind endpoints for dashboard
These will allow greater control and consistency with configuring
endpoint across openstack.

Change-Id: If124a39ed1892025ee58b19544edc351825ee5a6
Partial-Bug: #1430422
2015-04-02 15:23:14 +00:00
Ken Thomas 0bd8983212 Allow different URLs for internal/public endpoints
Provide new endpoint routines for admin_endpoint, internal_endpoint,
and public_endpoint. These will allow folks to specify different URLs
for those endpoints if they wish.

This is the first part of the fix. After the routines have been merged,
I'll start working on using the routines in the various component
recipies.

Change-Id: I5b3b90324ee0f9bf6b2c5278ad60724856d43321
Partial-Bug: 1412919
2015-01-21 22:29:08 +00:00
Chen Zhiwei d99aacda7c Add a new custom matcher render_config_file to test ini file content
After this, you can use below way to test ini file content:
render_config_file(file).with_section_content(section, content)

Change-Id: Iaed80a3fc61db02324fb2c8166b7032fd1823f60
2014-12-17 18:06:29 +08:00
Jan Klare 794cc3d461 Added chef-vault as option to store secrets
*Added gem chef-vault to gemfile
*Added method to decrypt chef-vault items
*Added case for ['openstack']['databag_type'] = 'vault'
*Added version for ['openstack']['vault_gem_version'] = '~> 2.3'
*Moved ::Chef.log.warn for developer_mode from method 'secret' to private method
'dev_secret' to refactore and shrink the method 'secret'
*Added link to opscode chef-vault documentation

Change-Id: Icda0e288bbb920498aba856fefaf04c0f1852787
2014-11-06 15:46:34 +01:00
Mark Vanderwiel 775ad40140 Cleanup cookbook contact info
* Consistent email across cookbooks
* Add Contributor.md to help out new folks
* Fix file modes
* Fix broken link in Testing.md
* Readme tweaks

Change-Id: I5bcf8724b1d8ea9833102f53b21b4c938d4615f0
Partial-Bug: #1342735
2014-10-13 11:31:42 -05:00
Mark Vanderwiel 50d11569ad Allow logging.conf to be configured via attributes
deprecated the ['logging']['ignore']
Allow custom logger, handler and formatter sections

Change-Id: Icda718b18aecc0f6caefe6fd56599a720b24f4d0
Implements: blueprint allow-custom-logging-handlers
2014-07-23 12:27:44 -05:00
Paul Czarkowski 092ddc9571 allow unencrypted databags for storing secrets.
This will allow for easier storage of secrets for CI/dev type
environments as well as providing working unencrypted examples
of how the databags should be structured.

Documented that this should not be used for real
secrets.

Change-Id: I903086bea72fdcf76996fd5ebf98c552002de223
2014-07-11 09:23:17 -05:00
Ionuț Arțăriși 9a6f959c23 move python_packages attributes from dependent cookbooks
Move the database client python packages attributes from dependent
cookbooks in -common so we don't duplicate them everywhere.

Change-Id: If45621d31889a582dde62474c4b08f52905a277f
Implements: blueprint move-python-db-client-attrs-to-common
2014-06-17 18:20:03 +02:00
Mark Vanderwiel 6fc8e58bab openrc search failure
The old openrc code handled when identity role was not converged yet
by looking at attributes.  Add this support back in.

Change-Id: I738c0f619b364548b5fff1f06cc48dce2c8f7e84
Closes-Bug: #1316236
2014-05-06 10:56:36 -05:00
Mark Vanderwiel 9c493ca96c Move openrc to Common from Compute
Since there are user cases for having an openrc created for
other uses besides Compute, it makes sense to move the openrc
recipe logic into Common to allow it to be used as needed with
any project.
- Added new recipe/template for openrc
- Added tests
- Will create patches to remove openrc from Compute and to add it
to the all in one environment.

Change-Id: I2ca2280ef92d78bcf3e8a7d85eb91c9565413e17
Implements: blueprint moveopenrc
2014-04-29 10:19:29 -05:00
Mark Vanderwiel f121e39060 Add new cli method
Add new method for calling openstack clis
Add new method for getting uuid via cli
These methods are based upon the identity register provider ones
Add tests
Related change in network: I89dd47c802a544bdd998059b36884cb10f628223

Change-Id: I2b2f1d94dbd67550ad3a352c2205a532173f6065
Implements: blueprint neutron-icehouse-default-changes
2014-04-17 12:36:15 -05:00
Mark Vanderwiel 10bab59e86 Add python-openstackclient package support
Add new client recipe for new common client package.
As more new features are only supported via this new python client, we
need to have a way to deploy it and Common seems like the right place.
There is another blueprint for moving the openrc from Compute to Common
that is related to this.

Change-Id: I8ab56b375b28c979021f3c5bc81e364f1cc65226
Implements: blueprint openstack-client
2014-04-16 09:38:46 -05:00
Wen Cheng Ma 8e0cfc0a25 Fix undefined method `[]' for nil:NilClass for Network installation
Add default OpenStack Network installation service_type name to avoid
undefined method error.

Fixes bug #1281922

Change-Id: I40176cd3b826965fef7292e13279c9f3d7324ded
2014-03-05 17:23:07 +08:00
zyouzhou-cn 038b77fc86 Add default auth api version inherited by other cookbooks and add the
common auth uri transform logic.

- Set default auth api version for other cookbooks, which can be
  inherited and overrided by other cookbooks.

- Move the auth uri transform logic from other cookbooks to this
  openstack-common libraries.

- When auth version is v3.0, the auth uri after transformed should be
suffixed with v3.

Change-Id: I36f831e706f4538c77353849146ebd84c1ca8f14
Imlements: blueprint move-keystone-authtoken-move-auth-uri-logic
2014-03-02 23:05:42 +08:00
invsblduck 7f9b68bb19 tighter control of mq attribute defaults
remove repetitive copy/paste blocks that are developing drift (eg., qpid
'reconnect' missing for compute, rabbit 'ha' missing for image, and
rabbit 'use_ssl' missing for network).

this provides more reliable assignment of defaults and better visibility
of the one-off tweaks (eg., notification_topics).

Change-Id: Iba6fd99de86ea5ce5afab1654c4bc7e7d32f3e51
2014-02-19 11:05:07 -08:00
Jenkins ee74092424 Merge "Initial step to clean up db and mq attributes" 2014-01-28 20:12:39 +00:00
Matt Thompson c741059eda Initial step to clean up db and mq attributes
Here we move db and mq attributes already present in default.rb
attributes into new files (database.rb,messaging.rb).  Additionally, we
pull in rabbit/mq attributes from
openstack-{block-storage,compute,image,metering,network} while
transforming namespace from openstack.SERVICE.mq and
openstack.SERVICE.rabbit to openstack.mq.SERVICE
and openstack.mq.SERVICE.rabbit.  Lastly, we copy
openstack.SERVICE.db.username attribute from
openstack-{compute,dashboard,identity,image,metering,network} while
transforming namespace to openstack.db.SERVICE.username.

Change-Id: I50c900aa2ba92ce53f4a6ad05aeabd59e701b514
Implements: blueprint clean-up-attr-for-mq-and-db
2014-01-24 08:54:12 +00:00
Hugh Saunders 9cb2776064 Remove Berksfile.lock from dev branches
blueprint remove-berksfile-lock-from-dev-branches

Change-Id: I4d9643b7739446943d648a7e9a6d4bb6e9ad0c63
2014-01-21 09:11:36 +00:00
Chen Zhiwei 9b4958fbf9 Add charset=utf8 to DB2 URI
Change-Id: I4535290d2e69c966dc65eb340cd0ba17af9883e6
2014-01-16 20:44:54 -05:00
Andy McCrae 5e7592dc18 Move to use "get_password" instead of "{user,service,db}_password"
The user_password, service_password and db_password functions are redundant
since they simply call "secret". Creates a get_password function that
will accept a "type" of db, service or user.

All instances of these calls have been changed to call get_password.

Interim commit that keeps the service,db and user functions in order to
merge other changes.

Change-Id: Iba4a611b387d0975e8a23cc758d2ac7dec8210ad
Partial-Bug: #1195915
2014-01-15 18:27:45 +00:00
Matt Ray 0fa1154758 Filling out initial rubocop support.
https://blueprints.launchpad.net/openstack-chef/+spec/lint-and-unit-testing-for-havana
Removing tailor, cleaning up metadata and Gemfile and adding TESTING.md

Change-Id: I193388f59f3265a6a549452fd798ee512f197603
2014-01-08 16:31:35 -06:00
Chen Zhiwei 471b5a3c66 Add sleep to search_for function, so that node can be searched
Because Chef server build node index need some time, so when a node is
bootstrapped, it takes some time before it is searchable. So I added a
timeout for Chef building node index.

Closes-bug: 1208201
Change-Id: I55eb383ce98e4765c412ece799f7885e690ab188
2013-12-17 04:10:13 -05:00
Matt Ray a463d12204 Added set_endpoints_by_interface recipe & attributes to support 'bind_interface'
Added set_endpoints_by_interface recipe to enable iterating over the contents of
the node['openstack']['endpoints'] hash and finding any non-nil `bind_interface`
to set the IP address. For example

    node['openstack']['endpoints']['identity']['bind_interface'] = 'eth0'

would set

    node['openstack']['endpoints']['identity']['host']

to whatever IP address was on 'eth0' rather than hard-code the IP addresses in
an Environment.

Change-Id: Ic07626d4e3b3fb743191077f95c5bdd04a5504cd
2013-10-30 12:17:13 -05:00
Matt Ray 1ab483c0eb Add support for openstack-common::sysctl
There are a number of sysctl settings in the OpenStack documentation that are
not managed by the cookbooks. This approach will iterate over any attributes
added to the node['openstack']['sysctl'] hash and write them out to
/etc/sysctl.d/60-openstack.conf.

The README.md had the recipe description within the Libraries section, separated
into new Recipes section.

Change-Id: Ic32184b78a0bcf4c3e704c7dcd1e9d009b1d95c6
2013-10-29 16:07:31 -05:00
Craig Tracey 686dbdc48a Remove config_by_role in favor of search_for
config_by_role is only used in once place:
openstack-compute::nova-common. And, in this single place it happens
to return inconsistent results. Now that we have search_for, which
does return consistent results, move this one last config_by_role
call to use that. In the interest of good clean living, I am removing
this code.

Bumping to version 0.4.0

Change-Id: Ib755a5d568008599ee7d663f43716e7fe47251f9
2013-07-26 01:10:03 -04:00
Ionuț Arțăriși 1ec5a0744c fix quantum endpoint path
quantumclient appends the API version to the url, which would result in
faulty urls like https://localhost:9696/v2/v2.0/...

Change-Id: I6b0b97db7c02d54b517bff106472c0a8a3fa22c6
2013-07-11 11:02:21 +02:00
sean f8781d13de Use strainer to isolate and test individual cookbooks
Included:
- Add strainer gem
- Update test-related gems
- Add Strainer file
- Remove run_tests.bash
- Update .gitignore
- Update README file
- Add tailor (ruby style check)

Partial fix for bug 1188345

Change-Id: Iae92a999cdfe230151795fcab5b597faa958274a
2013-06-10 13:43:49 -07:00
Matt Ray f4112fc773 Remove character causing knife cookbook upload to fail.
This mystery character causes knife cookbook upload to fail with ../ruby-1.9.3-p429/gems/chef-11.4.4/lib/chef/cookbook/metadata.rb:444:in `encode\': "\xE2" on US-ASCII (Encoding::InvalidByteSequenceError). Whatever it is gets rolled up when the metadata.rb imports the README.md in the long_description.

Change-Id: I13cd55bee3a98ac0bb0a50abc4e3fef2d61120ba
2013-05-29 21:18:12 -05:00
Craig Tracey b26d4c752b Allow for memcache_servers override attributes
Right now the memcache_servers function is used throughout a number of
the cookbooks. For those who have not defined a memcache role, this
can be problematic as it uses search. This would also be problematic
for those wanting to use chef-solo without search and/or test-kitchen.

So, just provide an override attribute to override search for
memcache_servers.

New test added to support this and all tests pass.

Change-Id: Iff655ff066d8aa933eedb67ac17611288b57a2f0
2013-05-23 16:42:36 -04:00
Matt Ray 6593ae381a markdown cleanups and Description update
Change-Id: I48e0ea7166b0b1072762b4512594f9845ff4479f
2013-05-17 14:21:07 -05:00
John Dewey 58268f4c77 Requirements cleanup 2013-05-07 17:48:24 -07:00
John Dewey 852a8e679d Adding ATT specifics and metadata/README cleanups 2013-05-06 19:11:19 -07:00
Jay Pipes ec70b8a90c Update to Grizzly packages and Quantum endpoints
Increases version from 0.1.10 to 0.2.0 for start
of Grizzly-based release. This obviously should NOT
be backported or cherry-picked into the stable/folsom
branch.
2013-04-30 11:25:31 -04:00
John Dewey 45879c81cc Moved to a run_tests runner. 2013-01-29 11:59:11 -08:00
John Dewey 2a812cfb26 Merged openstack-utils with this repo. 2013-01-13 12:01:29 -08:00
John Dewey bfe6659485 Some readme and metadata cleanups 2013-01-03 22:00:33 -08:00
Jay Pipes c7bd792a5d Adds user_password routine (used for ksadmin) 2012-12-18 21:09:16 -05:00
Jay Pipes 2f0412e671 Adds way to configure what sections of secret databag are called
* Also adds two convenience routines for db_password and service_password
2012-12-18 17:45:23 -05:00
Jay Pipes 4241aa3b5c Adds encrypted databag secret support
* Adds ::Openstack::secret library routine to return
  decrypted databag values or supplied parameter values
  when in developer_mode
* Adds documentation on library routine to README
* Adds unit tests for secret to specs/
2012-12-18 16:33:16 -05:00
Jay Pipes 9271206dc7 Initial commit 2012-11-07 20:52:47 -05:00