# # == Class: postfix::transport_regexp # # Manages Postfix transport_regexp by merging snippets shipped: # - in the module's files/transport_regexp.d/ or puppet:///files/etc/postfix/transport_regexp.d # (the latter takes precedence if present); site_postfix module is supported # as well, see the source argument of file {"$postfix_transport_regexp_snippets_dir" # bellow for details. # - via postfix::transport_regexp_snippet defines # # Example usage: # # node "toto.example.com" { # class { 'postfix': # manage_transport_regexp => 'yes', # } # postfix::config { "transport_maps": # value => "hash:/etc/postfix/transport, regexp:/etc/postfix/transport_regexp", # } # } # class postfix::transport_regexp { concat { '/etc/postfix/transport_regex': owner => root, group => root, mode => '0600', } # Cleanup previous implementation's internal files include common::moduledir file { "${common::moduledir::module_dir_path}/postfix/transport_regexp": ensure => absent, recurse => true, force => true, } }