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

filtertags: labs-project-deployment-prep

Parameters:

  • deployment_hosts (Array[String]) (defaults to: hiera('deployment_hosts', []))


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

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