- 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
- 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
These will allow greater control and consistency with configuring
endpoint across openstack.
Change-Id: If124a39ed1892025ee58b19544edc351825ee5a6
Partial-Bug: #1430422
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
After this, you can use below way to test ini file content:
render_config_file(file).with_section_content(section, content)
Change-Id: Iaed80a3fc61db02324fb2c8166b7032fd1823f60
*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
* 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
quantumclient appends the API version to the url, which would result in
faulty urls like https://localhost:9696/v2/v2.0/...
Change-Id: I6b0b97db7c02d54b517bff106472c0a8a3fa22c6
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
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
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.
* 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/