Commit Graph

19 Commits

Author SHA1 Message Date
Takashi Kajinami dd44ce031e Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ica6edbc7077c0bb2021cc737f44f3ced84cd5f83
2023-03-01 16:49:01 +09:00
Rajesh Tailor d425d2ed73 Fix typos in parameter descriptions and tests
Change-Id: I23cf4500b147770f0863a2e73c94f4bbff22d37f
2022-06-17 18:40:22 +05:30
ZhongShengping af274a193d Add watch_log_file option
Add support for Using logging handler designed to watch file system.

Change-Id: I1a5cfae74eb6d0e649f65b5bbba3cf4990e21764
Closes-Bug: #1943212
2021-09-14 16:02:08 +08:00
Takashi Kajinami d99340a590 Fix lint errors with the latest lint packages
This change fixes the following lint errors discovered since we removed
pin of lint packages.

manifests/client.pp:18:WARNING: class included by absolute name
(::$class)
manifests/logging.pp:120:WARNING: class included by absolute name
(::$class)

Change-Id: Ie447d36e1f92d8cf4f09684c0f21ed3026d90dea
2021-05-11 18:47:34 +09:00
Tobias Urdin b7f73b35c5 Convert all class usage to relative names
Change-Id: Iae69aff79cc231336b14d65305fff9c64cbd27e0
2019-12-08 23:04:25 +01:00
ZhongShengping 4bccd33974 Add log_file parameter
Change-Id: Ice3b3565ef018a93aa7085beecf7b245b25e838b
Closes-Bug: #1819417
2019-03-12 10:37:37 +08:00
ZhongShengping e18521569a Cleanup documentation
Make sure documentation is the same and follow
the standard which we are trying to enforce on
all modules.

Change-Id: I47f55d8e608509ee9f42a00edb7acfe59ca87983
2018-12-13 17:10:01 +08:00
Tobias Urdin 22892835e9 Remove deprecated logging
Change-Id: Ie331f058148f79a95bb8343f920654ef7dd5798b
2018-12-01 16:02:51 +01:00
ZhongShengping 57002e64ad Add use_journal option for logging configuration
This enables oslo.log to pass logging records to journald.

Change-Id: I4732ae45976cb88fd69f02c9e9bc3cf8febc212d
2018-01-15 15:38:47 +08:00
ZhongShengping b0818626dc Expose use_json logging option
It enables JSON-formatted logging from oslo.log.

Change-Id: If8c4b6f19b35c282ff2ae9aeaed30896ea5886b0
2017-11-28 09:06:57 +08:00
ZhongShengping 4bed705d0a Accept empty strings for log_dir
An empty string is an acceptable value of this entry, and it forces
logging to stdout/stderr, which is useful when running on containers.

Change-Id: I66b7d6d676686a0b8cf81e3371852a1423fe7921
2017-10-12 08:56:22 +08:00
ZhongShengping 6d0d2f2cd6 Switch to puppet-oslo configuring logging
1) Switch to puppet-oslo configuring logging.
2) switch messaging related parameters default value to
   $::os_service_default.
3) Update releated unit test.

Change-Id: I60e38b8fe26fede0829b24ccc9cffd1a05bc4ed7
2017-02-06 08:46:05 +08:00
ZhongShengping 1e95f32a6f Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: If9fa188b7dca47e6724a737d66e34c0c85668c36
2016-12-01 08:44:02 +08:00
Jenkins 0e08f0adcb Merge "Fix documentation for log_dir parameter" 2016-11-04 14:40:07 +00:00
Mykyta Karpin b49fb78563 Fix documentation for log_dir parameter
Change-Id: I57127a32c40c4c47c40a71891b8ea10c2a71d838
Partial-Bug: #1600294
2016-10-10 17:47:40 +03:00
Iury Gregory Melo Ferreira d01eba77e6 Remove verbose
Since we are in Ocata we should remove the
verbose option that was deprecated

Change-Id: Ib9497ddfeafafb58da0fb9bda07bd974e3d90ced
2016-09-27 20:36:07 -03:00
Iury Gregory Melo Ferreira 7f70b7f548 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 README
-Remove verbose from tests.
If this option is not set explicitly, there is no such warning

Change-Id: I4b148ae18f5196951f7de2afdff2fe815becfdb6
2016-05-18 23:21:05 -03:00
Denis Egorenko 4d073f8b8b Totally drop Qpid support
Qpid was removed in Mitaka from Oslo Messaging, so now we can
drop it in manifests.

Change-Id: Ie9cc37d3f3693cac388ecbd905bbb4cb2fc02a9a
2016-04-18 13:49:43 +03:00
Yanis Guenane 0c9951934b 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

This change remains backward compatible with what is currently in place.

Change-Id: I654f77d9c18401537f738d054d8e6be529d25fa2
2015-10-01 08:59:55 +02:00