Puppet Class: profile::mediawiki::scap_client

Defined in:
modules/profile/manifests/mediawiki/scap_client.pp

Overview

Parameters:

  • deployment_server (Any) (defaults to: lookup('scap::deployment_server', Stdlib::Host))
  • wmflabs_master (Any) (defaults to: lookup('scap::wmflabs_master', Optional[Stdlib::Host], 'first', undef))
  • scap_version (Any) (defaults to: lookup('scap::version', String, 'first', 'present'))
  • cloud_statsd (Stdlib::Fqdn) (defaults to: lookup('profile::wmcs::monitoring::statsd_master', {default_value => 'cloudmetrics1002.eqiad.wmnet'}))


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'modules/profile/manifests/mediawiki/scap_client.pp', line 4

class profile::mediawiki::scap_client(
    $deployment_server = lookup('scap::deployment_server', Stdlib::Host),
    $wmflabs_master = lookup('scap::wmflabs_master', Optional[Stdlib::Host], 'first', undef),
    $scap_version = lookup('scap::version', String, 'first', 'present'),
    Stdlib::Fqdn $cloud_statsd = lookup('profile::wmcs::monitoring::statsd_master', {default_value => 'cloudmetrics1002.eqiad.wmnet'}),
) {

    # TODO: rewrite the logic around $wmflabs_master
    # TODO: make the admin port a variable across all classes.

    class { '::scap':
        deployment_server => $deployment_server,
        wmflabs_master    => $wmflabs_master,
        version           => $scap_version,
        php7_admin_port   => 9181,
        cloud_statsd_host => $cloud_statsd,
    }

    class { '::mediawiki::scap': }
    class { '::scap::ferm': }
}