The difference in rabbit versions between openstacklib, cinder and nova
causes dependency conflicts. Version 4 of the rabbitmq module dropped
support for setting up erlang. This patch drops the required version to
between 2.0.2 and 4.0.0 in order to line up with the other modules
rather than requiring the other modules to change their dependencies as
well as set up erlang.
Change-Id: I99383b28574958a43b88b4feb0025ad795a6fda2
* Add puppetlabs-rabbitmq 4.x as a dependency in fixtures &
metadata.json
* Implement openstacklib::messaging::rabbitmq to manage user, permissions
and vhost in RabbitMQ (+ unit tests)
* Documentation
Change-Id: I65190035b51f3d72e4302dae7fad92a280d63cff
Service Validations aims to be used in all OpenStack modules to validate
that services are actually running.
Example in nova::api where we could validate the Nova API is really
working. If it's the case, a Puppet Anchor will be created. This Anchor
could be consummed by external tools to validate a deployment workflow
and improve the orchestration during an OpenStack deployment.
Change-Id: Ia74677b1402c8f872183f873cf9cb73702253874
Since puppet 3.x, Puppet Labs Forge accept only the metadata.json
for module description (Modulefile is now deprecated).
This patch :
- convert the Modulefile to metadata.json.
- bump major version to 5 (for juno).
- switch to stackforge namespace.
- relax pe version_requirement to 3.x.
Change-Id: I116ea888e4be8d791994573b57bc0b3ef9560804
This patch adds a dependency on the aimonb/aviator module and adds
functionality to support interactions with the OpenStack services' API
via aviator.
The patch adds a parent provider that is intended for other providers
to inherit from. The parent provider has methods to authenticate to
openstack services, create session objects, and make requests. The
authenticate method can accept credentials as an argument hash or infer
credentials from the environment.
It also adds a stub type parameter that allows types to incorporate
basic parameters they need in order to support using aviator.
Change-Id: I56b0d07ae8f4738037eda486b75a0f6e24fe80e7
Implements: blueprint use-aviator-in-module-resources
Support for non-array value in the function concat() was added
in puppetlabs-stdlib 4.2.0.
This change adds a fix to support puppetlabs-stdlib<4.2.0
by converting $host to an array.
Change-Id: Ib8e4c7a5f788d1e0bd7440bc93b560df8e39fcf4
* Add tests for openstacklib::db::mysql::host_access
* Add tests for other overridable parameters in db::mysql
* Do not test implementation details of host_access from
within openstacklib::db::mysql tests.
Change-Id: Ifcf3820a575f932313a62b9d294ebd92a5055cf5
Improve logic to be able to reuse host_access for both the initial
mysql user/grant and the additional ones for allowed_hosts.
Change-Id: Ia42833a99ee0fab41a571cccaeb31f740176fce3
Currently puppet modules does not allow one to manage policy.json.
This commit aims to create a common resource for people to manage
their policies.
Change-Id: I1cd7765cdcbddb7e7ad5d720f1efa382641712f2
puppetlabs/stdlib 4.x is backwards compatible with 3.x and still tested
on Puppet 2.7. Updating stdlib to 4.x allows modules to use newer
functions without breaking older functionality.
Change-Id: Iaaac5678cdd00db3a03eb1f715e6cd91a25cefc8
The openstacklib::db::mysql resource is a library resource that can be used by
nova, cinder, ceilometer, etc., rather than replicating equivalent
functionality across all of these modules.
This resource reimplements most of the functionality of the puppetlabs
mysql::db resource. The primary purpose of writing this code from scratch
rather than using the mysql::db resource is to allow the use of a password
hash rather than a plaintext password as a parameter. Other differences from
the mysql::db implementation are:
* It does not have an ensure parameter, we will assume the db should be present
* It does not accept and execute arbitrary SQL because the db sync exec manages
the state of the db
* It does not use ensure_resource because the database and user should only be
created from within this resource and creating them elsewhere should be an
error
Implements: blueprint commmon-openstack-database-resource
Change-Id: I76bd93d1579179932d1f48cea4bb80a2576a7fba
The os_database_connection function is an helper used to build
database connection URI from various parameters.
Example:
os_database_connection({
dialect => 'mysql',
host => '127.0.0.1',
port => '3306',
username => 'guest',
password => 's3cr3t',
database => 'test',
charset => 'utf-8'
})
Result:
mysql://guest:s3cr3t@127.0.0.1:3306/test?charset=utf-8
Change-Id: Id0bde33891112e36f13d3f8fdf0ff89820c09c01
As of release 0.6.0 puppetlabs_spec_helper now contains a validate task in
puppetlabs_spec_helper/rake_tasks, so writing it in our own Rakefile
is unnecessary.
Change-Id: I8250c2fc7621fe4233c2bc53e6770f69a84188eb