27 Commits

Author SHA1 Message Date
Michael Chapman
4aa86af2fc Add support for puppetlabs-mysql 2.2
Puppetlabs-mysql has been rewritten to be much
cleaner. This patch adds a new parameter for the
glance mysql class allowing users to use the new
version. Previous behavior will continue as normal
when using the old version (0.9)

Change-Id: Icdc787e325f3e86572f6930f1ab8c3d5291e67c9
2014-03-22 02:12:28 +11:00
Benedikt Trefzer
e866507782 set ssl options for glance-api
lets you set the ssl cert, key, ca for secure api
connection.

Change-Id: Ie82a46eeca27897363273aab5e58fcf6f6fe1ae0
backport: havana
2014-03-19 08:16:46 +01:00
Jenkins
31ced75334 Merge "Add ability to purge config" 2014-03-10 15:57:51 +00:00
Michael Chapman
c629376782 Add ability to purge config
This patch adds paramters to the api and registry
classes that allows the respective config files to
be purged.

This is needed when running in a configuration that
is contrary to the defaults for the platform packager,
such as rabbitmq on RDO

Change-Id: I9f8664b2098bd41b9a98eac095bfec8493ed1254
2014-02-23 18:28:55 +11:00
Sebastien Badia
1d5a298f41 Add log_dir param. by default and allow users to disable it
* add log_dir param (and configure it to /var/log/glance) by default.
  * fix log_file missing setting on glance::registry
  * allow users to disable log_dir and log_file with « false » argument.

Change-Id: I0689fa15199e69cf16ff306050776d150365a09c
Closes-bug: #1282296
2014-02-20 13:55:46 +01:00
Sebastien Badia
715216c3dc Add availability to configure show_image_direct_url
This commit:
  - Add the show_image_direct_url parameter (default to false)
  - Fix spelling errors in documentation
  - Fix documentation format (use puppetdoc)
  - Add missing documentation about params

Change-Id: I8e5cb36c19ffa4ae726642a55d8fab5c6cea07b5
Co-Authored-By: Emilien Macchi <emilien.macchi@enovance.com>
2014-02-03 10:23:46 +01:00
Jenkins
a1b2406c9c Merge "Add syslog support to the glance module" 2013-09-03 14:10:54 +00:00
Dan Bode
3fe2895a71 Change keystone tenant and user default
Currently, the default auth tenant and user for
glance are set to admin. This is not only
inconsistent with the rest of the modules (where
the tenant defaults to services and the user defaults
to the name of the service: ie: glance), it
is also inconsistent with the glance::keystone::auth
class.

This patch changes the defaults to services and glance
for both the api and registry service.

Change-Id: I3bd6390183c88213ec4bc289ca6be6f2d9c8bdd2
2013-08-30 18:09:23 -07:00
Francois Deppierraz
a79c191681 Add syslog support to the glance module
Change-Id: Ibe3a22a996016d1a80efb69fd7d401d1834d011b
2013-08-28 14:40:43 +02:00
Dan Prince
adcb347abd Add default auth_uri setting for auth token.
The latest keystoneclient code now gives a Warning if auth_uri
isn't explicitly specified.

Change-Id: I0feb52f7a9140ea750254f80b6a3e6855b25f1d3
2013-08-27 15:45:11 -04:00
Jenkins
ffbe1c566f Merge "Allow blank keystone flavor in glance configs" 2013-06-25 07:24:53 +00:00
Simon Sellar
a633d9f59a 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
2013-06-18 09:59:42 +09:30
Maru Newby
b144d4e6c5 Fix misnamed protocol param in glance-api.conf
* keystone_authtoken/protocol => auth_protocol

Change-Id: I47ba3eb584255e666f787b53d4668b74a575982f
2013-06-14 10:56:57 -04:00
François Charlier
dc98e9bb58 Add support for auth_admin_prefix in glance
Add support for auth_admin_prefix in glance::registry, glance::api & in
the glance provider.

Change-Id: I646c621f0a42cd987bc409b17066f8ac13556883
2013-06-11 17:26:28 +02:00
Mathieu Gagné
b04232aecb Use boolean instead of string
Change-Id: Ie508c5f6a98277b650307a1782ce3fde9d2bca1e
2013-05-09 23:12:33 -04:00
Derek Higgins
3ade42f65e Allow paste deploy flavor to be passed for glance api
Some users may want to pass in one of
keystone, keystone+caching or keystone+cachemanagement
depending on their caching needs

Change-Id: Ia13cc2f1d8ec43074b114edf1b2366b85ca77aa0
2013-04-26 05:51:59 -04:00
Dan Bode
6c77769c8e remove auth_url param
This commit removes the auth_url class param

I search of glance's source code indicates that this
parameter is not used anywhere except by something in the
tools directory.
2012-10-31 10:39:12 -07:00
Dan Bode
7c396acd66 remove password defaults
This commit removes the password defaults.

Users should not rely on password defaults.
2012-10-14 12:36:13 -07:00
Dan Bode
e6216be659 fix unit tests 2012-10-14 00:23:20 -07:00
Eugene Kirpichov
0f98eb07ba Customizable auth_url, not hardwired to 127.0.0.1 2012-08-21 17:53:20 -07:00
Dan Bode
1fb892afd7 Add enabled parameter to glance services.
This commit adds the parameter enabled to both glance::api
as well as glance::registry.

Setting enabled to false ensures that the service is not running
and that the db schema is not create/migrated.

This flag is being added to all nova services to allow the deployment
of the openstack controller in active-passive for HA.
2012-06-18 10:14:53 -07:00
root
38622827fe This commit fixes spec test failures that were caused by
using RI's version of the concat module.

It introduces a custom fact concat_basedir that can determine
where the vardir is for a particular agent.

This commits adds that fact to unit tests that are validating
the resuling fragment files.
2012-05-08 14:38:55 -07:00
Dan Bode
a7a96af75e 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!)
2012-04-03 10:03:08 -07:00
Dan Bode
0a400dcc6a 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.
2012-03-31 16:09:29 -07:00
Dan Bode
2054c76ee4 update spec test to set osfaily
Update spec tests to set osfamily so they do not
fail.
2012-03-19 22:57:23 -07:00
Dan Bode
972fefaea6 Rafactor glance api to merge defaults
This code cleanup simplifies one the tests by merging the
specified params over the defaults instead of returning either
the defaults or the specified params.
2012-03-13 15:09:58 -07:00
Dan Bode
4fa5d3f046 (#11692) Add unit tests
This commit adds full test coverage for all manifests
in the glance repo.
2012-01-03 11:27:43 -08:00