Defined Type: exim::domainlist

Defined in:
manifests/domainlist.pp

Summary

This define can be used to create domainlists, which can be referenced later

Overview

Parameters:

  • domains (Any) (defaults to: undef)

    Array containing a list of domains

  • path (Any) (defaults to: undef)

    If path is set, domains are listed in a file located in this path, the main config will recieve a reference to this file. If path is not set, domains are written directly into the config file instead.

See Also:



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'manifests/domainlist.pp', line 14

define exim::domainlist (
  $domains=undef,
  $path=undef,
  ){
  $listtype = 'domainlist'

  if $path {
    $listfile = $domains
    file {$path:
      content => template("${module_name}/listfile.erb"),
    }
    $list = [ $path ]
  }

  else {
    $list = $domains
  }

  concat::fragment { "domainlist-${title}":
    target  => $::exim::config_path,
    content => template("${module_name}/list.erb"),
    order   => '0002',
  }
}