Defined Type: exim::acl::statement

Defined in:
manifests/acl/statement.pp

Summary

This define creates one acl statement in exims configuration

Overview

Parameters:

  • acl_id (Any)

    Id of parent acl this statement correspondes to. The acl-statement is part of the acl with id “acl_id”.

  • order (Any)

    Position of this statement in the acl (acl_id).

  • action (Any)

    The outcome of given acl statement (e.g.: accept)

  • conditions (Any) (defaults to: undef)

    Conditions to “action” Example: [ ['hosts', ['192.168.1.2','192.168.1.3']], ['domains', ['+domainlist']], ],

  • disable (Boolean) (defaults to: false)

    This option can be used to ignore this acl statement even if other options are set. This is usefull if statements are created via hiera_hash with deep_merge, and you want to completly disable a statement defined in a lower hierachy.

See Also:



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'manifests/acl/statement.pp', line 32

define exim::acl::statement (
  $acl_id,
  $order,
  $action,
  $conditions      = undef,
  Boolean $disable = false
){
  unless $disable {
    notice('using exim::acl::statement is deprecated please use the statements parameter of exim::acl')
    concat::fragment { "acl-${acl_id}-${order}":
      target  => $::exim::config_path,
      content => template("${module_name}/acl/statement.erb"),
      order   => $acl_id * 100 + 1000 + $order,
    }
  }
}