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