Fixed gate by Updating Gemfile to pin Rake to 10.1.1

The latest Rake update requires Ruby >= 1.9. Bundler in the
current gate uses 1.8.x. This update fixes the gate by pinning
Rake to the last known working version.

Change-Id: I618eccbd209a90e5868367c4d962df7700a555f9
Release 3.1.0

Updated Modulefile and README.md for 3.1.0 release.

Change-Id: I8ea0fb820f679b9868b696738605c003362a45b1
RBD backend: use ensure_resource

In the case we want to declare more than one backend using RBD driver,
we have a resource dupplication which could be fixed by using stlib
functions.

Closes-bug #1294138
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>

Change-Id: I1783540cd8218e8bafb4d0b860ca4c5992f35a19
(cherry picked from commit 6dba575af6f119385614b390c92dc258032a480e)
Release 3.1.1

Updated Modulefile and README.md for bugfix release.

Change-Id: I1592d0b09587fd27a054bbbf32f9b1d30cbb8715
[bp] Add support for Cinder multi-backend

* Create class cinder::backend.
   Sets DEFAULT/enabled_backends

* Create define cinder::type.
   multip-purpose function to create type and optionally set extened
   information.

* Create define cinder::type_set.
   multi-purpose set function to set extended information.

* Copy rbd, iscsi, and nfs volume providers to support multi-backend
   Now provided as cinder::backend::<driver> to ensure that multi-backend
   aware resource is|[ not] used.

* Add rspec for new parts to ensure expected function.

Blueprint: cinder-volume-multi-backend

Change-Id: I6df9cadaad3b9ce2ab4b0e87dba9b5056459db10

Conflicts:
	README.md
	manifests/backend/rbd.pp
	spec/defines/cinder_backend_iscsi_spec.rb
	spec/defines/cinder_backend_nfs_spec.rb
	spec/defines/cinder_backend_rbd_spec.rb
	spec/defines/cinder_type_set_spec.rb
	spec/defines/cinder_type_spec.rb
Add Swift as backup backend support

Cinder can backup volumes in different backends.
Swift will be the first one supported by puppet-cinder.

New class: cinder::backup::swift

Change-Id: Iec0a48681da8fd987955cabae49d411ede1e255e
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>

Conflicts:
	manifests/backup/swift.pp
	spec/classes/cinder_backup_swift_spec.rb
Improve Cinder Backup support

In my last commit on Cinder module, I add cinder::backup::swift
without adding cinder::backup class which is useful to ensure that
package is installed and service is running.
It also includes variables related to backup configuration.

Note: swift is one of the drivers of backup in Cinder, other ones should
be included in manifests/backup/<driver>.pp

Change-Id: I1a55245abe61f9bbd71568d76ed00e0ecf08307e
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
Fix default Swift URL in Backup service

Change-Id: I860fdf2173c2ea0a3a91f310455927f8115b14fe
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
Using contain_class instead of include_class

Per rspec-puppet-1.0.1 warning:

DEPRECATION: include_class is deprecated. Use contain_class instead.
Called from .../vendor/gems/rspec-puppet-1.0.1/lib/rspec-puppet/
matchers/include_class.rb:7

Change-Id: I6b410bc4d294bdc6f4feb65a18b213f88b5184f1
Creating qpid_sasl_mechanisms parameter

Accepts a string or array.

Change-Id: Iaa4a68a7aace39f516ead63703528e46a03794c5
Fix puppet lint WARNING issues

Change-Id: Ifc92cf284eca95deaf4dd43476ff904e263abae2
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>

Conflicts:
	manifests/volume/rbd.pp
Add support for VMDK driver

The patch adds support for VMware vmdk cinder driver. It also
supports configuring the driver for multi-backend scenarios.

implements blueprint support-vmdk-driver

Change-Id: I3f50f9974100ceab2a991f692022dd918f2e4445

Conflicts:
	manifests/volume/vmdk.pp
	spec/classes/cinder_volume_vmdk_spec.rb
	spec/defines/cinder_backend_vmdk_spec.rb
Update GlusterFS driver

Since https://github.com/openstack/cinder/commit/e997f8b06ecd4ed0a13c557d621db69eb68f2f3d
got merged, glusterfs_disk_util is now removed.
This patchs aims to raise an error when using it.

Change-Id: Ic5b9b0a742482d6b7380cb59fbec6b490a206779
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
rbd: add params and deprecate glance_api_version

- Add all cinder rbd params
- Update documentation/tests
- Deprecate glance_api_version to avoid duplicate definition
  with cinder::glance class.
  (use glance_api_version of cinder::glance class instead.)

Change-Id: I50cb2b3deb4bf89b374c063f61eea99e1885906e
Remove deprecated cinder::base class

cinder::base class has been deprecated since before 2.0.0 release.

Closes-bug: #1271737
Change-Id: I7116bc200b791be159108642ecff9874ee54cd6b
Fix typo in cinder_scheduler_spec

Change-Id: I5b58adddb1a021b2e7c1e76b479c3a1e410e8029
multi rbd: add opts, deprecate glance_api_version

- Add all cinder rbd params (multi-backends)
- Update documentation/tests
- Deprecate glance_api_version to avoid duplicate definition
  with cinder::glance class.
  (use glance_api_version of cinder::glance class instead.)

Change-Id: I957d81647cd0320a52be00dceff23692ba208017
[vmdk] Replaced pip with native package manager

Change-Id: I0603889ad00cbd7fe83c436f1c7273ef0c35b73f
volume/rbd: Re-enable conditional for string parameters

- According the Michael comments on review¹, the conditional statements
  was re-added (in order to not pass « False » in ini config file).
- Fix spec/defines/* warnings (Space interpreted as grouped expression)

¹https://review.openstack.org/#/c/73892/2/manifests/backend/rbd.pp

Change-Id: I4ef5cbffdc611c011bccb9b400df27830d51343e
Added NFS max use and oversub ratios

Added the ability to configure additional cinder options for allocating
the over-subscription ratio and for setting the max disk use ratio.

Change-Id: I5387563d5cc869e8be38c8d5a4d9c0d0fc3be469