Skip to content

Commit

Permalink
Merge pull request #105 from Icinga/enhancement/logging-level-warning…
Browse files Browse the repository at this point in the history
…-by-default

Set logging_level to warning by default
  • Loading branch information
lbetz authored Dec 31, 2023
2 parents d8f44ec + 1d91e93 commit d260ee5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
12 changes: 3 additions & 9 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,10 @@ Default value: `'file'`

##### <a name="-icinga--agent--logging_level"></a>`logging_level`

Data type: `Optional[Icinga::LogLevel]`
Data type: `Icinga::LogLevel`

Set the log level.

Default value: `undef`

##### <a name="-icinga--agent--zone"></a>`zone`

Data type: `String`
Expand Down Expand Up @@ -714,12 +712,10 @@ Default value: `'file'`

##### <a name="-icinga--server--logging_level"></a>`logging_level`

Data type: `Optional[Icinga::LogLevel]`
Data type: `Icinga::LogLevel`

Set the log level.

Default value: `undef`

##### <a name="-icinga--server--run_web"></a>`run_web`

Data type: `Boolean`
Expand Down Expand Up @@ -1839,12 +1835,10 @@ Default value: `'file'`

##### <a name="-icinga--worker--logging_level"></a>`logging_level`

Data type: `Optional[Icinga::LogLevel]`
Data type: `Icinga::LogLevel`

Set the log level.

Default value: `undef`

##### <a name="-icinga--worker--run_web"></a>`run_web`

Data type: `Boolean`
Expand Down
4 changes: 4 additions & 0 deletions data/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ icinga::repos::manage_crb: false
icinga::repos::manage_server_monitoring: false
icinga::repos::manage_plugins: false
icinga::repos::manage_extras: false

icinga::server::logging_level: warning
icinga::worker::logging_level: warning
icinga::agent::logging_level: warning
2 changes: 1 addition & 1 deletion manifests/agent.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
class icinga::agent (
Stdlib::Host $ca_server,
Hash[String, Hash] $parent_endpoints,
Icinga::LogLevel $logging_level,
String $parent_zone = 'main',
Array[String] $global_zones = [],
Enum['file', 'syslog', 'eventlog'] $logging_type = 'file',
Optional[Icinga::LogLevel] $logging_level = undef,
String $zone = 'NodeName',
Boolean $run_web = false,
) {
Expand Down
2 changes: 1 addition & 1 deletion manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
# and add the Icinga user to this group.
#
class icinga::server (
Icinga::LogLevel $logging_level,
Boolean $ca = false,
Boolean $config_server = false,
String $zone = 'main',
Expand All @@ -62,7 +63,6 @@
String $director_api_user = 'director',
Optional[Icinga::Secret] $director_api_pass = undef,
Enum['file', 'syslog', 'eventlog'] $logging_type = 'file',
Optional[Icinga::LogLevel] $logging_level = undef,
Boolean $run_web = false,
) {
if empty($colocation_endpoints) {
Expand Down
2 changes: 1 addition & 1 deletion manifests/worker.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
Stdlib::Host $ca_server,
String $zone,
Hash[String, Hash] $parent_endpoints,
Icinga::LogLevel $logging_level,
String $parent_zone = 'main',
Hash[String, Hash] $colocation_endpoints = {},
Hash[String, Hash] $workers = {},
Array[String] $global_zones = [],
Enum['file', 'syslog', 'eventlog'] $logging_type = 'file',
Optional[Icinga::LogLevel] $logging_level = undef,
Boolean $run_web = false,
) {
# inject parent zone if no parent exists
Expand Down

0 comments on commit d260ee5

Please sign in to comment.