13 Commits

Author SHA1 Message Date
ZhongShengping
d4651f0352 Fix lint issue
Change-Id: Ifa7df22c0d250c97fb79a98ca1f73e250550fd16
2019-01-25 12:55:20 +08:00
Juan Antonio Osorio Robles
0d59c9f771 Expose use_json logging option
It enables JSON-formatted logging from oslo.log.

Change-Id: I854a66368e1e556796dcc2a1d7ce66ca578346ad
2017-11-25 11:58:26 +02:00
Juan Antonio Osorio Robles
aabe420a3f Add use_journal option for logging configuration
This enables oslo.log to pass logging records to journald.

Depends-On: I2f2977d88607939c278815cc449a129e8c04379d
Change-Id: I5b8393e0d290f325e1de910f30561a7b08abe7d6
2017-09-29 14:51:06 +03:00
Mykyta Karpin
92144af37f oslo log: check puppet resource instead of actual config in spec
- additionaly switch to usage of OSDefaults in logging spec

Change-Id: If87ed9e2ee49f277d1c51988566023e14797f8f3
2017-03-16 10:52:12 +02:00
ZhongShengping
b87e23f774 Fix typo
Change-Id: I96b63116f23f974c912d12e9f32e0ab6347d97ff
2017-03-13 20:15:32 +08:00
Denis Egorenko
255725d803 Revert "Deprecate use_syslog"
This option is not deprecated and still actual.

This reverts commit eb12a287bef990dcc0b34357ceca3fd772c1175e.

Change-Id: I97e9fdd24ff6731532ca124a8439ddbc6cf5534e
2016-05-31 13:42:38 +00:00
Iury Gregory Melo Ferreira
eb12a287be Deprecate use_syslog
[DEFAULT/use_syslog] was deprecated in Mitaka [1]
init.pp logging.pp - deprecate use_syslog, add warning, remove reference
tests - remove use_syslog and [DEFAULT/use_syslog] verification.

[1]
http://docs.openstack.org/mitaka/config-reference/tables/conf-changes/keystone.html

Change-Id: Iac282eac4f581b1a16c8d73eadd904fbc6be32c4
2016-05-25 12:39:20 +00:00
Iury Gregory Melo Ferreira
dbde71b855 Deprecate verbose option in logging
Option "verbose" from group "DEFAULT" is deprecated for removal.
The parameter has no effect.
-Deprecated verbose for logging and init
-Remove verbose in examples and README
-Remove verbose from tests.

If this option is not set explicitly, there is no such warning.

Change-Id: I2f554c07f71458894aaa5d8079285ac92d0f04a3
2016-05-16 11:23:13 -03:00
Denis Egorenko
46ced6835c Totally drop Qpid support
Qpid was removed in Mitaka from Oslo Messaging, so now we can
drop it in manifests.

Change-Id: Ica56c344fac4505ebdf8c739334c9b0400a02c87
2016-04-18 13:59:24 +03:00
Iury Gregory Melo Ferreira
4b87767b3b $::os_service_default in db and logging
Switch to $::os_service_default all params in logging and db.
Changes: logging.pp, db.pp and tests.

Related-bug: #1515273

Change-Id: Ib84dceafb032747adc1d8b6e56bd01e89aa802cb
2015-11-25 14:03:51 +00:00
Yanis Guenane
ee2723009e Put all the logging related parameters to the logging class
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: I2ad392f8f12be3f3a7d51916e0645531ed1184a2
2015-10-02 10:14:13 +02:00
Sebastien Badia
fa7d680c0d spec: updates for rspec-puppet 2.x and rspec 3.x
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)
  * Standardize gemfile (add json, webmock)

Change-Id: I35a39d4f3919d56c9448f0a0602cfe284ebc2e9c
Card: https://trello.com/c/eHXc1Ryd/4-investigate-the-necessary-change-to-be-rspec-puppet-2-0-0-compliant
2015-03-15 18:09:53 +01:00
Johannes Grassler
f277297080 Add extended logging options.
There is a range of extended logging options in Openstack services that use
openstack.common.logger (Ceilometer, Cinder, Heat, Keystone, Nova). Adding
keystone::logging to support them. This change is identical to
<https://review.openstack.org/#/c/113560/> but it applies to puppet-keystone
instead of puppet-ceilometer.

No blueprint/spec, as discussed in the IRC meeting on 08-11-2014.

Change-Id: I88fcf025b9467090d21d1a10a5af9b270f8ef11e
2014-09-01 12:42:41 +00:00