In Chef Infra Client 16.2, resources have to be named using the provides
method. The resource_name method has not been changed in order to be
compatible with Chef Infra Client <16.2.
Also fix URI.encode and URI.decode deprecations.
Update etcd depends to ~> 6.0 to fix Chef 16 deprecation warnings.
Depends-On: https://review.opendev.org/747503
Change-Id: I24be89a3214207bac2df9eb360124871e0d8242f
Closes-Bug: #1886985
Signed-off-by: Henrique Santos <hfigueiredosantos@tecnico.ulisboa.pt>
Signed-off-by: Lance Albertson <lance@osuosl.org>
This pulls in fixes needed to address problems with setting the lock_dir
in apache vhosts on ubuntu hosts.
Change-Id: Iaab65fe46e517a54e193b8363c2152fb80806a25
- Switch to Stein release
- Cookstyle fixes
- Update cookbook etcd to ~> 5.6
- Update README
- Add myself to author list and OSU Copyright
- Properly fix completions recipe and ensure it works
- Create and start the etcd service in the etcd recipe
- Update delivery configuration to exclude integration cookbooks
- Refactor and update RenderConfigFileMatcher to work with newer
ChefSpec. This fixes output which was passing but showing error
messages.
Depends-On: https://review.opendev.org/701027
Change-Id: Iba3eeabe85ab9303147e43eeb550212a46d190f3
This updates the mariadb cookbook dependency which pulls in mariadb_user
and mariadb_database resources that do not require the mysql2 gem. In
addition, this removes all of the imported mysql libraries and resources.
Other fixes include:
- Rename openstack_common_database resource to openstack_database
- Convert LWRP to a custom resource
Change-Id: I723740b53fe772cf17e65acfb62d5f82e107b7ea
- 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
The poise-python cookbook is no longer maintained by the upstream maintainer and
is causing lots of issues for the testing pipeline. Originally we needed this to
install a newer openstack-client via pip, but we no longer do that.
The one exception is in the integration cookbook which I'll be pushing a change
for that as well.
In order to do this, we need to include EPEL on RHEL which doesn't seem to have
any current dependency issues so I think it's safe to bring back.
Depends-On: https://review.opendev.org/665493
Change-Id: Ic8ddf736193a6a7cea5372f2fd09e2def3634333
Signed-off-by: Lance Albertson <lance@osuosl.org>
- etcd does not take any arguments. the default is create.
- remove use_inline_resources in preparation for custom resources
Change-Id: Ic9c98978587cf81bfd430bd5b712cf537c3fb9a0
Depends-On: I161af1074cd17f2e3d2d2cf0b37a0c5fa1015fd3
- changed the default RDBMS to MariaDB in accordance with install docs[0]
- removed deprecated database, apt and yum cookbooks
- incorporated `database' and MySQL-specific abstractions from database
cookbook
- implemented foodcritic and cookstyle corrections
- deprecated node.foo.bar method access for node['foo']['bar'] bracket syntax
- updated default recipe for core apt resource
- use /etc/apt/apt.conf.d on Ubuntu instead of passing the dpkg overrides as
command line options in every cookbook
[0]: https://docs.openstack.org/install-guide/environment-sql-database.html
Implements blueprint modern-chef
Change-Id: I143e0ed0a2bdd76269fc0c402052696426d96d81
Depends-On: I00e2237cef0c9aa35f78d3ccec04a1c7b9271ce8
Depends-On: I7ee0f5eae4e79e5c70ee8de4a0094a7c34fdd18f
- This recipe implements a basic etcd installation for shared oslo configs.
A wrapper recipe is needed for instantiation, as etcd is a pure library
cookbook.
Change-Id: Id2f934a9fc408276cb0a25afc2f65ec5f5c54c15
- bumped chefdk to 1.5
- bumped mariadb to 1.5
- style fixes to make rubocop/foodcritic happy
- rewrote metadata.rb for readability
- removed ancient Gemfile
- removed openshift rubygems mirror since it doesn't help us
Change-Id: I950605f384405b55737af77bc4224f1e18fee8e1
- incremented mysql to 8.1
- incremented database to 6.1
- incremented yum to 3.13
- incremented yum-epel to 1.0
- incremented poise-python to 1.5
- incremented apt to 5.0
- created dependency on build-essential for python-openstackclient
- incremented authentication API version to v3.0
- incremented ChefDK packages to 1.0
Change-Id: I57c8729e8732161ac34caa85259de8264e99c56d
Implements: blueprint newton-xenial
- increments Ubuntu release to 16.04
- increments release to newton for Ubuntu and CentOS
- increments apt cookbook version to 4.0
- increments mysql cookbook version to 7.2
Change-Id: I07ad79a93642d0f0c934a864fcb9bcd7b764e35f
Implements: blueprint newton-xenial
* the packaged version of python-openstackclient for ubuntu and centos are quite
old and we need the new version to completely switch all cookbook logic to the
openstackclient
* this patch include the poise-python cookbook and uses its resources to install
a python 2 environment and the python-openstackclient
Change-Id: I881075dcd11d06d9c1537d929c7626155c01a1d6
* version bump to 13.0.0 for mitaka release
* removed suse support
* removed general endpoint method, since we should be able to always specify
which endpoint we need
* removed fallbacks in specific_endpoint method, since this behaviour is not a
very obvious one to the user and it should rather return an error than an
unexpected result
* dry public, internal and admin endpoint methods
* removed obsolete private methods
* adapted method calls for admin_endpoint in libraries/cli.rb
* refactored set_endpoints_by_interface recipe to directly call address_for
instead of address, since the recipe already checks for an existing attribute
..['bind_interface'] and therefore address would redirect to address_for
anyways
* moved the nested hash order for the public, internal and admin attributes to
to be more clear and to break all existing calls to fix them during the
refactoring process of all cookbooks
e.g: node['openstack']['endpoints']['internal']['identity'] is now
node['openstack']['endpoints']['identity']['internal'] and can be moved into
the identity cookbook. This also streamlines these endpoint attributes with
the bind_interface and host attributes
* removed dependency on openstack-identity cookbooks by moving openrc recipe to
opentack-identity (same for corrensponding specs and template)
* removed address method and use the address (or hostname) defined in the
endpoints hash directly (logic to set this attribute should rather be
done in a wrapper (with a fitting method) instead of a static and predefined
one)
* removed set_endpoints_by_interface recipe since logic for defining the
endpoints will be moved to wrapper cookbooks
* added helper method merge_config_options for generation of config hashes used
in service config templates
* added template for openstack-service.conf.erb which can be used by all service
cookbooks
* deleted all endpoints attibutes, since these are moved to the service
cookbooks for easier dependency handling
Implements: blueprint cookbook-refactoring
Change-Id: I0547182085eed91d05384fdd7734408a839a9a2c
MetaData Changes:
- bump metadata version to 12
Other codes changes
- change juno to kilo where appropriate
- rubocop todo file updates
- removed db2 refs
Bootstrap Changes
- Updated to 0.7.0 release of the ChefDK
Change-Id: I65745eae2e430ced0c25e8f05dd490fdad840623
- added percona-cluster as option to the proper openstack attributes
Change-Id: I0ccdc6efbdfa3d72bdc63a49b3cd0fd1630babe1
Implements Blueprint: galera-and-percona-support
1. Add a new db service_type as 'galera'
2. Reuse compatible code for mysql to support 'galera'
Change-Id: I7de9a7eab3523d8acdf4627a571335b59be0e0ee
Implements: blueprint galera-and-percona-support
Add the rest of the kombu ssl configuration options.
After this patch goes in, will need to update each cookbook
that uses rabbit mq to add these to the conf file.
Change-Id: Ie89f48b4a471d48df88f185a1012da9eb63071bd
Partial-Bug: 1464706
The update of the apt cookbook version currently breaks the gates for opentstack-chef-repo and openstack-block-storage, because of a dependency on the ceph cookbook, which is incompatible in its currently released version with the new apt cookbook. The fix was committed in master (4883a0b092) and we can do our apt update as soon, as this is released to the supermarket.
This reverts commit f0e7724f37.
Change-Id: Ib36b58e7e25c4c24bb480fc9412d909c167f5fdd
use new apt cookbook version ~> 2.7.0, since it supports debian 8 and
should work fine with everything else
Change-Id: Icc0b9973995b9fe945cd347d9f065d6a90a4be3d
Cleaned up all the minor rubocop issues, the ones left relate to
complex logic and what I think is a bug in rubocop for nested
vs compact modules/class definitions.
Change-Id: Ic0c0677de44642e0994c0b95a3c270cbd4749b40
These small wrappers are now needed by other cookbooks. They
provide a easy way to create a clean spec test.
Will put these into the Common openstack library module namespace
for easy use across the cookbooks.
Added common role defintion for compute worker. Eventually all
the role definitions should be moved here.
Added new spec for these wrappers.
Change-Id: If548a9d63a42799e1401b18540878eca5ba2a0e1
Related-Bug: #1448255
Oslo.message using rabbit_max_retries and rabbit_retry_interval to
define reconnect rabbitmq server times and interval when can not
connect to rabbitmq server.
Change-Id: I6bba768f4cf0c61b92fbc5d682b60f094afb7180
Partial-bug: #1439968
These will allow greater control and consistency with configuring
endpoint across openstack.
Change-Id: If124a39ed1892025ee58b19544edc351825ee5a6
Partial-Bug: #1430422
1. Add a new db.service_type as 'mariadb'
2. Reuse compatible code for mysql to support mariadb
3. Set mariadb as default database type for RHEL family
Change-Id: Ib537dc921b6e9d05cb79ef3e95dac558a7180816
blueprint: mariadb-support
MetaData changes
- bump metadata versions to 11
Gemfile changes
- bump robocop to 0.29.1
- bump chef to 11.18.6 close to 12 but not quite (need infra changes for 12)
- bump berks to 3.2.1 to get fix for running twice (destination already exists)
Rubocop changes
- add .robucop_todo.yml for future cleanup
- rubocop --auto-gen-config and add an inherit_from: .rubocop_todo.yml in your .rubocop.yml
- add .bundle/**/* to .rubocop.yml
- add .cookbooks/**/* to robocop.yml
- fixup berks-cookbooks/** with /**/*
Changelog changes
- delete Changelog.rb
Other codes changes
- change juno to kilo where appropriate
- cleanup any obvious old deprecated code
Change-Id: I146aa7f7ba4024115c1297103e176a72336fbe5d
Partial-Bug: #1426424
Nova metadata api endpoint was missing from common endpoints.
This patch will be follow by one for compute and network to
make use of these new endpoint.
Change-Id: Ieabff853c3a66f2dfaf839ebc7abf9a90252f21b
Partial-Bug: #1425633
mysql cookbook is now provider driver, and no longer has default
attributes, like server_root_password.
For the password, now always using the Common password methods.
Therefore the ['openstack']['db']['root_user_use_databag'] attribute
was removed, it's now the default path.
For the other mysql attributes we used, these were moved into the
ops-database cookbook. See that patch for more info.
This patch requires updates to the database and mysql-chef-gem cookbooks.
Change-Id: I817030cd7fb56cb025e1a8e21dc2b956b0ad7911
Implements: blueprint trusty-juno
After this, you can use below way to test ini file content:
render_config_file(file).with_section_content(section, content)
Change-Id: Iaed80a3fc61db02324fb2c8166b7032fd1823f60