This patch adds the ability to set a new identity_uri parameter.
It also deprecates the old auth_host, auth_port, auth_protocol,
and auth_admin_prefix parameters. Logic is in place so that
users of the deprecated settings should have a smooth upgrade
process and get deprecation warnings until they adopt the
new settings.
Change-Id: Id72991da18dd1f467a7683f8f450e157da64f969
Closes-Bug: #1391235
As an option, validate Glance API service with a default or custom
command, and if the service is up and running, create a Puppet Anchor
Change-Id: Id713d32d1dc34a15e93adb89c18d3471145e6ffe
When https://review.openstack.org/#/c/125231/ was merged, the glance
providers became dependent on the DEFAULT/os_region_name parameter in
the glance configs, but the module had no way to set that parameter.
This caused the providers to fail.
This patch adds the parameter to glance::api so that the user can
control the value. It also removes functionality of the os_region_name
in glance::backend::cinder. While it would be better to deprecate this
parameter first and remove its functionality in a later release, there
is no clean way to do this and avoid a duplicate definition error.
An alternative to rapidly removing this functionality from
glance::backend::cinder would be modifying the glance parent provider
to make the DEFAULT/os_region_name glance config optional.
Change-Id: I075224acb9da2bb547d437b08cf6fccfed655d5c
This commit allow a deployer to manage the policies via this module
It relies on augeas to change only the policy needed. The init takes
a hash of policies and apply them.
Change-Id: I6ee27a1c4c26c73f5954e6462097fb5ed4dbb7ea
puppet-glance lacks of disabling service managing. This patch adds
$manage_service parameter to relevant classes.
Change-Id: I222b1a3318f5163f6ad1e39cbb8be10c440ab99f
Closes-bug: #1359823
Currently secrets like rabbit_password or admin_password are displayed in
puppet logs when changed. This commit changes glance_*_config and
glance_*_ini types adding a new parameter that triggers obfuscation of
the values in puppet logs.
Change-Id: I31f974a9afadef42939ee092ecba3b8f4333bb8b
Closes-Bug: #1328448
registry_client_protocol can't be configure in puppet now.
The default value is "http". It should be configurable.
Change-Id: I526c0892d123067362ea1b18cb8c21526a860981
Closes-bug: #1266988
SQL configuration has changed in Havana.
This patch aims to deprecate old parameters and configure using the
right way.
Change-Id: I6a800d51294ae23636636a8d1c6ccad192f45d4e
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
Without image_cache_dir parameter, Glance API can't start.
Default value is set to /var/lib/glance/image-cache.
Change-Id: I1cfcbf0021cfae187d9c8d78a16b18de29c97b4a
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
on Debian plattforms there are separate packages
for glance registry and glance api. This allows
you to install api/registry on different servers.
If the packages for registry and api are the same,
(as it is the case for RedHat plattform)
the package is installed in ::glance class.
If the packages differs (as for Debian plattform),
installation of packages is done in
registry/api classes.
Additionaly this patch adds a test for unsupported
plattforms.
Change-Id: I8d4b74e8c8ad2dd7e6e2ad175326f36ff818c108
In glance-api, if you use known_stores's default value and didn't use
all of the stores listed in known_stores, then glance-api service will
throw an error to point out which store missing, see more description
in related bug link.
This patchset adds known_stores option in glance::api, so that users
can configure it by their own needs.
Change-Id: If08254f419d182b82cc50137383985834f40a6fd
Closes-bug: #1259403
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
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
* 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
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
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
Some users may want to pass in one of
keystone, keystone+caching or keystone+cachemanagement
depending on their caching needs
Change-Id: Ia13cc2f1d8ec43074b114edf1b2366b85ca77aa0
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.
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.
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.
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!)
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.
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.