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-deploy01.deployment-prep.eqiad.wmflabs'.

Parameters:

  • deployment_server (Any) (defaults to: 'deployment')
  • wmflabs_master (Any) (defaults to: 'deployment-deploy01.deployment-prep.eqiad.wmflabs')
  • version (Any) (defaults to: 'present')
  • php7_admin_port (Stdlib::Port::Unprivileged) (defaults to: 9181)
  • cloud_statsd_host (Stdlib::Fqdn) (defaults to: 'cloudmetrics1002.eqiad.wmflabs')


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

class scap (
    $deployment_server = 'deployment',
    $wmflabs_master = 'deployment-deploy01.deployment-prep.eqiad.wmflabs',
    $version = 'present',
    Stdlib::Port::Unprivileged $php7_admin_port   = 9181,
    Stdlib::Fqdn               $cloud_statsd_host = 'cloudmetrics1002.eqiad.wmflabs',
) {
    require git::lfs

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

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

    require_package([
        'python-psutil',
        'python-netifaces',
        'python-yaml',
        'python-requests',
        'python-jinja2',
    ])
}