Allow blank keystone flavor in glance configs

Blank keystone flavor now allowed in api.pp and registry.pp
Pipeline config logically separate from keystone config (pipeline can
be set even if auth_type is not defined.)
Added rspec tests.

Change-Id: Ic4fbff44242459f504cd14ef18915b2efac2d032
Fixes: bug #1190475
Merge "Allow blank keystone flavor in glance configs"
Do not initialize version_control for database

glance-manage version_control is not required since Folsom.

Fixes: bug #1172456
Change-Id: I39d3df92c91341ff3869d5e9da05d44714aaf54f
Various Puppet lint fixes

* Fix following warnings:
    * double quoted string containing no variables
    * indentation of => is not properly aligned
    * quoted boolean value found
    * variable not enclosed in {}
* Fix following errors:
    * two-space soft tabs not used
* Remove quotes around class in include/require statements
* Remove some comments from the code, they added no value

Change-Id: I341b37f2c6795951f3285037b2fa612d767a4474
Configure glance-cache.conf with swift backend

glance::backend::swift was not properly configuring
swift_store_* in /etc/glance/glance-cache.conf
when using swift backend.

Change-Id: I7b46dd2bd1ff050759b11cbc9c3c7068e4c3e01e
Configure glance-cache.conf with file backend

glance::backend::file was not properly configuring
filesystem_store_datadir in /etc/glance/glance-cache.conf
when using file backend.

Change-Id: Ie8d3259de429089f2f00fbafd2e5cbf90c069263
Merge "Do not initialize version_control for database"
Merge "Configure glance-cache.conf with swift backend"
Merge "Configure glance-cache.conf with file backend"
Add support for rbd in glance

Add support for Ceph/rbd in glance.
Unit test added to spec.

Add package dependency "python-ceph" accordingly to a patch from
Michael Jeanson <mjeanson@gmail.com>.

Change-Id: I0908cde951994db6aba74d2ce3415126c429a76e
Glance provider should retry once when service is not ready

Just b/c the glance service has started correctly does not
mean the service is actually running. Often, the service
is not operational and attempts to use the glance_image provider
results in connection errors.

This commit inserts code that allows the glance provider to
sleep for 10 seconds and perform a single retry.

The template for the code and tests was borrowed from keystone.

Change-Id: I565f1befea6ec3d2347f8e29c9aa05d5a312a827
Merge "Add support for rbd in glance"
Remove Unnecessary mysql::server Dependency

Previously, the db::mysql class required mysql::server.  This is
unnecessary since the mysql::db define requires the mysql::config
class for db creattion.  Additionally, this prevents users from
using a different class such as galera::server to manage
the database.

Change-Id: I8ee9303eef67657dd2898d910897748a0af5415b
Pin rabbit and mysql to major version for fixtures

Previously, unit tests were using master for testing.

This commit changes them to use the newly created major version
branches. This allows us to backport bug fixes while we wait for
upstream to stabilize.

Change-Id: I1b476a99e3fc5a5624cc7ebe7c776e3e9058ec3b
Add glance-cache-cleaner and glance-cache-pruner

* glance::cache::cleaner: Installs a cron job to remove stalled and
  invalid cached images.
* glance::cache::pruner: Installs a cron job to keep the image cache
  at or below the maximum cache size.

Change-Id: I99cb1809446f1a1126454ff5fa5bdceb8044ee28
Remove --silient-upload option, which is invalid

Python-glanceclient removed the --silent-upload some time ago (I
believe when the client was split out from Glance itself).  It's no
longer valid and needs to be removed.  Otherwise users will see
an error of the form:

glance: error: unrecognized arguments: --silent-upload

Change-Id: I417688872bd8e7c4bac7be13d0b0eb13a030fe29
Update allowed_hosts conditional statement

In the origin glance::db::mysql, if the value of $allowed_hosts
contains or equals to $host, then puppet will complain duplicate
declaration error. This patch is aim to update the allowed_hosts
conditonal statement in glance::db::mysql.

There are two cases to pass $allowed_hosts to $real_allowed_hosts:

   - If $allowed_hosts is array,then remove $host from $allowed_hosts;
   - elsif $allowed_hosts is string and not equivalent to $host;

At last, if $real_allowed_hosts is not undef, then run
glance::db::mysql::host_access

Fix bug 1206444

Change-Id: Ic70aaaec493195c7277782abb87469f9809e5baa
Merge "Update allowed_hosts conditional statement"
Merge "Add glance-cache-cleaner and glance-cache-pruner"
Fix the glance_image type example so that it can actually be used.

Change-Id: I10dd74f4ed38f33e344cdd96d0c763fb9b97ac1a