This change adds possibility to use the os_service_default
fact for configuration options that default to '<SERVICE DEFAULT>'.
this change is done by analogy with cinder
commit 667e6c0850672dbbf99381eb92468f95e5591913
Change-Id: Ie5c8909bcc1c9a6a7a9ab1b59eec4637751ffd74
Currently logging configuration is splitted in two distinct classes, the init.pp
and the logging.pp classes.
This review aims to centralize all logging related parameters in a single class,
the logging.pp one.
The impacted parameters are :
* use_syslog
* use_stderr
* log_facility
* verbose
* debug
* log_dir
* log_file
This change remains backward compatible with what is currently in place
Change-Id: Ic268104fd9bc77bc142fc635285b0459f3d4314f
When logging is already set up, it can be useful to disable this option
to avoid logs duplication (collected by Upstart, for example)
Change-Id: I1787191d9a512fdd3c3f79d6fadda110c5e41d54
Closes-bug: #1482564
In order to be able to take an action after all the packages of the
module have been installed/updated or all the services have been
started/restarted, we set a 'glance-package' and 'glance-service'
tag for each package and service of this module.
At the moment, there is a generic openstack tag that is not specific
enough if one wants to take action upon a single module change.
Use case :
If an action needs to be taken after all the packages have been
installed or updated : Package <| tag == 'glance-package' |> -> X
Change-Id: If43e27e80500deebf6b758b11541d3d6f50cb129
This reverts commit d302170d260f4e6585fedc1b4709c953d0491c56.
We can unrevert this change once we are ready for kilo specific
changes.
Change-Id: I3079727c8333de3e9b4382a68fca3ef293ce2d48
This reverts commit e6e8f6a56231409028ff1e7cdcd44781ca37d5b0.
Kilo deprecates these settings, but they still work. We should wait to
merge this until upstream distro packages are ready so that master is
not broken.
Change-Id: Ib05943e89969eb810527943426c566cf4a77e7ad
Due to a patch in RDO packaging, puppet-glance is broken for RHEL platforms.
This reverts commit 5f15e05704b2e549b8fab1c643a6ee743a0e92f4.
Change-Id: I7ba146714d1b0e8d461c556eff5a9f8c4ad9627f
Starting in Kilo, Red Hat-based platforms are using separate
glance-api and glance-registry packages (for an example, see
http://trunk.rdoproject.org/f21/current/).
Change-Id: I3ad476846d7dec3ca612e5b0d20b21b8577f4af0
Kilo oslo-messaging deprecates rabbit/kombu settings in the
DEFAULT section.
Move these settings to proper oslo_messaging_rabbit section.
Change-Id: Ica8cd70ece41f55b827f74d3f14cbc35f37ae13d
Setting up cache requires ops to be aware of how cache works in Glance
and the fact they'll need more space on disk. It can be dangerous when
using shared storage (Ceph for example).
This patch aims to default to 'keystone' without cachemanagement
anymore.
This is not backward compatible, so if the deployer is not overriding
this parameter, Glance API won't manage the cache anymore.
Change-Id: Ibac35501658b2ba79081cbc7a53245d4a4eb7839
This patch aim to update our specs test in order to work with the rspec-puppet release
2.0.0, in the mean time, we update rspec syntax in order to be prepared
for rspec 3.x move.
In details:
* Use shared_examples "a Puppet::Error" for puppet::error tests
* Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
* Fix spec tests for rspec-puppet 2.0.0
* Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
* Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper)
Change-Id: Ibd0333dc3c0959e846edfbad51fb48e8dfb8fbe9
Card: https://trello.com/c/eHXc1Ryd/4-investigate-the-necessary-change-to-be-rspec-puppet-2-0-0-compliant
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