augeas.pp 917 Bytes
Newer Older
1
2
3
#class postfix::augeas
#  This class provides the augeas lenses used by the postfix class
#
4
class postfix::augeas {
5
6

  $module_path = get_module_path($module_name)
7
  augeas::lens {'postfix_transport':
8
9
10
11
    ensure       => present,
    lens_content => file("${module_path}/files/lenses/postfix_transport.aug"),
    test_content => file("${module_path}/files/lenses/test_postfix_transport.aug"),
    stock_since  => '1.0.0',
12
  }
13
  augeas::lens {'postfix_virtual':
14
15
16
17
    ensure       => present,
    lens_content => file("${module_path}/files/lenses/postfix_virtual.aug"),
    test_content => file("${module_path}/files/lenses/test_postfix_virtual.aug"),
    stock_since  => '1.0.0',
18
  }
19
  augeas::lens {'postfix_canonical':
20
21
22
    ensure       => present,
    lens_content => file("${module_path}/files/lenses/postfix_canonical.aug"),
    test_content => file("${module_path}/files/lenses/test_postfix_canonical.aug"),
23
  }
24
}