Puppet Class: profile::toolforge::infrastructure

Defined in:
modules/profile/manifests/toolforge/infrastructure.pp

Overview

Parameters:

  • login_server (Boolean) (defaults to: lookup('login_server', {default_value => false}))


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

class profile::toolforge::infrastructure (
    Boolean $login_server        = lookup('login_server',  {default_value => false}),
){
    unless $login_server {
        if ($::wmcs_project in ['tools', 'toolsbeta']) {
            motd::script { 'infrastructure-banner':
                ensure => present,
                source => "puppet:///modules/profile/toolforge/40-${::wmcs_project}-infrastructure-banner.sh",
            }
        }

        # Infrastructure instances are limited to an (arbitrarily picked) local
        # service group and root.
        security::access::config { 'toolforge-admin-only':
            content  => "-:ALL EXCEPT (${::wmcs_project}.admin) root:ALL\n",
            priority => 90,
        }
    }
}