Add code for db and host_access

Glance can be configured to use a mysql db.

This commit adds the classes db and db/host_access.
Refactor config files for essex

The config files for glance have changed quite
a bit between the Diablo and Essex releases of
OpenStack.

This commit refactors the config files.
Update example site.pp
Add test script

This needs to be updated.
Merge pull request #16 from bodepd/dev

Dev
Add code to use latest ppas

The ppas are currently coded in the keystone module.

This code adds them to the glance example to ensure that
we get the latest version of the glance packages.
Ensure repo stage is applied before main stage
Merge pull request #17 from bodepd/dev

Dev
Split api.conf file into fragments

This commit splits the api.conf template into
fragments to better allow for logical separation
for configuration sections.

The main motivation for this change is to allow
differrent implementations of services in glance to
be split up into seperate configuration interfaces.

The primary examples of this are the notifier and
the storage backend. Each of these services have
multiple potential implementations. This allows
those implementations to be implemented as separate
class interfaces and saves us from having to have
all of the possible config parameters to be specified
as parameters of the api class.

It creates a define: glance::api::config that can
used to configure file fragments for
/etc/glance/glance-api.conf

It also creates configuration interfaces for
configuring the following config sections of api:
backend::swift, backend::file, notify::qpid,
notify::rabbitmq.
Refactor glance::api to use fragments

This commit refcators the glance api class to use
fragments. The file resource for glance-api.conf
is removed and replaced with header and footer
fragments.

The swift and file backend specific parameters are
also removed
Remove service parameters

Apparently the service_* settings are no longer
relevant for the latest version of keystone.

These were only necessary when it used to function
as a proxy.
Add rspec tests

This commit resolves failing tests from
glance::api and glance::registry related to recent
refactors.

It also adds tests for all of the new api fragment
classes/defines.
Refactor glance-api.conf erb file

I do not need this any more b/c the creation of
this file is now implemented using fragments.
Refactor example based on fragment reafactor
Namespace glance apu fragments to avoid duplicates

Previously, there was a duplicate resource conflict between
the footer fragment for keystone and glance.

This commit prefixes the fragment names for glance to avoid
duplicate resources.
Remove dependency from glance::api to concat::setup

This was causing a dependency cycle.
Add integration test code

This commit adds a test script that can be used to verify
if the glance instance is functional.
Merge pull request #18 from bodepd/dev

Refactor
Remove backend class

The backend class has been removed and the related
backend config service has been coupled with the
file and swift classes. This is to reduce the code
complexity.
Fix broken tests

I had previously checked in some broken tests that
resulted from the updating the concat fragments names
to ensure uniqueness between services (eg, choosing
fragment names like HEADER were causing
duplicate resource errors, these have been prefixed
with the service name glance-api to ensure uniqueness)

This commit updates the tests so that they work for
this previous commit (oops!)