Puppet Class: profile::beta::mediawiki

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

Overview

Class profile::beta::mediawiki

Allow mwdeploy to login from scap deployment host. Adds an exception in /etc/security/access.conf to work around labs-specific restrictions

Parameters:

  • deployment_hosts (Array[Stdlib::Host]) (defaults to: lookup('deployment_hosts', {'default_value' => []}))


6
7
8
9
10
11
12
13
14
# File 'modules/profile/manifests/beta/mediawiki.pp', line 6

class profile::beta::mediawiki (
    Array[Stdlib::Host] $deployment_hosts = lookup('deployment_hosts', {'default_value' => []})
) {
    $ips = join($deployment_hosts, ' ')
    security::access::config { 'scap-allow-mwdeploy':
        content  => "+ : mwdeploy : ${ips}\n",
        priority => 60,
    }
}