Puppet Class: scap

Defined in:
modules/scap/manifests/init.pp

Overview

Class: scap

Common role for scap masters and targets

Parameters:

[*deployment_server*]
  Server that provides git repositories for scap3. Default 'deployment'.

[*wmflabs_master*]
  Master scap rsync host in the wmflabs domain.
  Default 'deployment-deploy03.deployment-prep.eqiad1.wikimedia.cloud'.

Parameters:

  • deployment_server (Variant[Stdlib::Host,String]) (defaults to: 'deployment')
  • wmflabs_master (Stdlib::Fqdn) (defaults to: 'deployment-deploy03.deployment-prep.eqiad1.wikimedia.cloud')
  • version (String) (defaults to: 'present')
  • php7_admin_port (Stdlib::Port::Unprivileged) (defaults to: 9181)
  • cloud_statsd_host (Stdlib::Fqdn) (defaults to: 'cloudmetrics1004.eqiad.wmnet')
  • betacluster_udplog_host (Stdlib::Fqdn) (defaults to: 'deployment-mwlog01.deployment-prep.eqiad1.wikimedia.cloud')


12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'modules/scap/manifests/init.pp', line 12

class scap (
    Variant[Stdlib::Host,String] $deployment_server = 'deployment',
    Stdlib::Fqdn $wmflabs_master                    = 'deployment-deploy03.deployment-prep.eqiad1.wikimedia.cloud',
    String $version                                 = 'present',
    Stdlib::Port::Unprivileged $php7_admin_port     = 9181,
    Stdlib::Fqdn $cloud_statsd_host                 = 'cloudmetrics1004.eqiad.wmnet',
    Stdlib::Fqdn $betacluster_udplog_host           = 'deployment-mwlog01.deployment-prep.eqiad1.wikimedia.cloud',
) {
    require git::lfs

    package { 'scap':
        ensure => $version,
    }

    file { '/etc/scap.cfg':
        content => template('scap/scap.cfg.erb'),
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
    }
}