Defined Type: exim::acl

Defined in:
manifests/acl.pp

Summary

This define creates a new acl

Overview

Parameters:

  • acl_id (Any) (defaults to: undef)

    Id of this acl, this is needed for acl statements to reference this acl.

  • statements (Any) (defaults to: undef)

See Also:



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'manifests/acl.pp', line 9

define exim::acl ($acl_id=undef,$statements=undef){
  if $statements {
    concat::fragment { "acl-${title}":
      target  => $::exim::config_path,
      content => template("${module_name}/acl/acl.erb"),
      order   => 1001,
    }
  }
  elsif $acl_id {
    concat::fragment { "acl-${acl_id}":
      target  => $::exim::config_path,
      content => template("${module_name}/acl/acl.erb"),
      order   => $acl_id * 100 + 1000,
    }
  }
  else {
    fail('you must specify "$statements" or "$acl_id"')
  }
}