voxpupuli / puppet-postfix

Puppet postfix module
Apache License 2.0
70 stars 174 forks source link

transport map : unmanaged resources purge #251

Closed fenixwanamaker closed 5 years ago

fenixwanamaker commented 5 years ago

The resource postfix::transport does not handle unmanaged entries in the /etc/postfix/transport file

steps to reproduce the issue :

  1. manually add an entry to the file /etc/postfix/transport ( e.g : gmail.com : discard )
  2. apply the puppet catalog, using the postfix::transport resource, and a configuration which doesn't include gmail.com
  3. the manually added entry is still present after the puppet run
raphink commented 5 years ago

That is right, and it is the expected behavior. This module allows you to manage the configuration in a granular way, but does not purge unmanaged entries at the moment.