Puppet Class: service::configuration

Defined in:
modules/service/manifests/configuration.pp

Overview

Class: service::configuration

General configurations for services.

Parameters

mwapi_host

The host/IP where to reach the MW appservers. Default: api-rw.discovery.wmnet

restbase_uri

The host/IP where to reach RESTBase. Default: restbase.discovery.wmnet:7443

http_proxy

Full URL of the proxy to use

statsd_host

StatsD host. Optional. Default: localhost

statsd_port

StatsD port. Default: 8125

logstash_host

GELF logging host. Default: localhost

logstash_port

GELF logging port. Default: 12201

log_dir

Local root log directory. The service's logs will be placed in its subdirectory. Default: /srv/log

rsyslog_udp_port

UDP endpoint for rsyslog port. Default: 10514

use_dev_pkgs

Whether the development packages declared for services should be installed. Default: false

Parameters:

  • mwapi_host (Any) (defaults to: 'https://api-rw.discovery.wmnet')
  • restbase_uri (Any) (defaults to: 'https://restbase.discovery.wmnet:7443')
  • http_proxy (Any) (defaults to: undef)
  • statsd_host (Any) (defaults to: 'localhost')
  • statsd_port (Any) (defaults to: 8125)
  • logstash_host (Any) (defaults to: 'localhost')
  • logstash_port (Any) (defaults to: 12201)
  • log_dir (Any) (defaults to: '/srv/log')
  • rsyslog_udp_port (Any) (defaults to: 10514)
  • use_dev_pkgs (Any) (defaults to: false)


41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'modules/service/manifests/configuration.pp', line 41

class service::configuration(
    $mwapi_host     = 'https://api-rw.discovery.wmnet',
    $restbase_uri  = 'https://restbase.discovery.wmnet:7443',
    $http_proxy    = undef,
    $statsd_host   = 'localhost',
    $statsd_port   = 8125,
    $logstash_host = 'localhost',
    $logstash_port = 12201,
    $log_dir       = '/srv/log',
    $rsyslog_udp_port = 10514,
    $use_dev_pkgs  = false,
){

    file { $log_dir:
        ensure => 'directory',
        owner  => 'root',
        group  => 'root',
        mode   => '0755',
    }

}