Defined Type: query_service::logback_config

Defined in:
modules/query_service/manifests/logback_config.pp

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • pattern (String)
  • deploy_name (String)
  • log_dir (Stdlib::Unixpath)
  • ensure (Wmflib::Ensure) (defaults to: 'present')
  • logstash_logback_port (Stdlib::Port) (defaults to: 11514)
  • evaluators (Boolean) (defaults to: false)
  • sparql (Boolean) (defaults to: false)
  • throttle (Boolean) (defaults to: false)


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'modules/query_service/manifests/logback_config.pp', line 2

define query_service::logback_config (
    String $pattern,
    String $deploy_name,
    Stdlib::Unixpath $log_dir,
    Wmflib::Ensure $ensure = 'present',
    Stdlib::Port $logstash_logback_port = 11514,
    Boolean $evaluators = false,
    Boolean $sparql = false,
    Boolean $throttle = false,
) {
    file { "/etc/${deploy_name}/logback-${title}.xml":
        ensure  => $ensure,
        content => template('query_service/logback.xml.erb'),
        owner   => 'root',
        group   => 'root',
        mode    => '0644',
    }
}