Defined Type: dstserver::config::modoverride

Defined in:
manifests/config/modoverride.pp

Summary

Generates modgenoverride configuration for servershards to set mods on enabled or disabled and provide custom mod configuration where defined.

Overview

Parameters:

  • path (String)

    Directory path to the shards configuration

  • mods (Optional[Hash])

    Configuration Hash for mods on this instance, see section Mod Config in Readme.md



10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/config/modoverride.pp', line 10

define dstserver::config::modoverride (
  String $path,
  Optional[Hash] $mods,
) {
  $ensure = $mods ? { undef => absent, default => present}
  file{"${name}-modoverride":
    ensure  => $ensure,
    path    => "${path}/modoverride.lua",
    content => epp('dstserver/modoverrides.lua', {
      mods => pick($mods, []),
    })
  }
}