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
Affected Puppet, Ruby, OS and module versions/distributions
Puppet: 7.31
Ruby: ruby-2.7.8-139
Distribution: AlmaLinux 9.4
Module version: puppet-postfix (v2.0.0)
How to reproduce (e.g Puppet code you use)
I use hiera and create_resources to use the defined_types.
When you have existing entries in a config file, f.e. main.cf or transport etc. I see no possibility to purge all that I don't have defined.
What are you seeing
It does not delete existing entries in configfiles that are not defined.
I guess it's because it uses augeas which only sets config parameters one by one and not the whole file.
What behaviour did you expect instead
I can delete entries I don't want with ensure=absent, but I don't "know" what is already defined on the target machine.
I can't really set all other parameters to absent, I'm searching for a possibility the just delete ALL OTHER entries and only keep the ones I defined.
Looking for an equivalent to the purge directories feature.
I want to ensure that only my config is deployed and not just added, at the moment puppet just adds or changes config entries but won't delete existing config lines.
Output log
Any additional information you'd like to impart
Not really an issue, just looking for ideas how to achieve this.
The text was updated successfully, but these errors were encountered:
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
I use hiera and create_resources to use the defined_types.
When you have existing entries in a config file, f.e. main.cf or transport etc. I see no possibility to purge all that I don't have defined.
What are you seeing
It does not delete existing entries in configfiles that are not defined.
I guess it's because it uses augeas which only sets config parameters one by one and not the whole file.
What behaviour did you expect instead
I can delete entries I don't want with ensure=absent, but I don't "know" what is already defined on the target machine.
I can't really set all other parameters to absent, I'm searching for a possibility the just delete ALL OTHER entries and only keep the ones I defined.
Looking for an equivalent to the purge directories feature.
I want to ensure that only my config is deployed and not just added, at the moment puppet just adds or changes config entries but won't delete existing config lines.
Output log
Any additional information you'd like to impart
Not really an issue, just looking for ideas how to achieve this.
The text was updated successfully, but these errors were encountered: