Puppet Class: inspircd::config::limits

Inherits:
inspircd::params
Defined in:
manifests/config/limits.pp

Overview

Parameters:

  • maxnick (Any) (defaults to: $inspircd::params::maxnick)
  • maxchan (Any) (defaults to: $inspircd::params::maxchan)
  • maxmodes (Any) (defaults to: $inspircd::params::maxmodes)
  • maxident (Any) (defaults to: $inspircd::params::maxident)
  • maxquit (Any) (defaults to: $inspircd::params::maxquit)
  • maxtopic (Any) (defaults to: $inspircd::params::maxtopic)
  • maxkick (Any) (defaults to: $inspircd::params::maxkick)
  • maxgecos (Any) (defaults to: $inspircd::params::maxgecos)
  • maxaway (Any) (defaults to: $inspircd::params::maxaway)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'manifests/config/limits.pp', line 1

class inspircd::config::limits (
  $maxnick = $inspircd::params::maxnick,
  $maxchan = $inspircd::params::maxchan,
  $maxmodes = $inspircd::params::maxmodes,
  $maxident = $inspircd::params::maxident,
  $maxquit = $inspircd::params::maxquit,
  $maxtopic = $inspircd::params::maxtopic,
  $maxkick = $inspircd::params::maxkick,
  $maxgecos = $inspircd::params::maxgecos,
  $maxaway = $inspircd::params::maxaway,
) inherits inspircd::params {


  $config = {
    maxnick  => $maxnick,
    maxchan  => $maxchan,
    maxmodes => $maxmodes,
    maxident => $maxident,
    maxquit  => $maxquit,
    maxtopic => $maxtopic,
    maxkick  => $maxkick,
    maxgecos => $maxgecos,
    maxaway  => $maxaway,
  }

  ::inspircd::internal::configblock { "inspircd ${name}":
    config_name => 'limits',
    config      => $config,
    order       => '21'
  }


}