You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really would like the postfix config file main.cf to be purged of parameters unknown to Puppet. I like when config files are completely under Puppet control.
For now, I'm dealing with this workaround:
exec { 'clear-postfix-cfg':
command => 'echo "### Managed by Puppet - Changes will be lost" > /etc/postfix/main.cf',
onlyif => 'grep "^# " /etc/postfix/main.cf',
path => ['/bin', '/usr/bin'],
} ->
class { 'postfix':
}
I'm able to implement this feature, but I'm not sure on the simplest/cleanest way to do it and would be glad to get some hints from you.
Regards,
The text was updated successfully, but these errors were encountered:
Turning postfix::config into an augeasproviders type/provider with self.instances would make it purgeable and allow to purge all entries not managed by Puppet (using either the resources type or the purge type). Would that work for you?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I really would like the postfix config file
main.cf
to be purged of parameters unknown to Puppet. I like when config files are completely under Puppet control.For now, I'm dealing with this workaround:
I'm able to implement this feature, but I'm not sure on the simplest/cleanest way to do it and would be glad to get some hints from you.
Regards,
The text was updated successfully, but these errors were encountered: