If I remove the first entry (net.ipv6.conf.all.disable_ipv6) from the manifest or move the second entry to the top, it works.
What are you seeing
Puppet does not remove the second setting
What behaviour did you expect instead
Puppet should remove the second setting when ensure=>absent is active.
Output log
Nothing
Any additional information you'd like to impart
The module seems to support only one target file if you want to remove an entry. Changing values or adding entries works, regardless of the number of targets.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Do some settings with different targets:
and apply them. Both files are created and the entries are added.
Then try to remove the second setting:
and the apply will do nothing
If I remove the first entry (net.ipv6.conf.all.disable_ipv6) from the manifest or move the second entry to the top, it works.
What are you seeing
Puppet does not remove the second setting
What behaviour did you expect instead
Puppet should remove the second setting when ensure=>absent is active.
Output log
Nothing
Any additional information you'd like to impart
The module seems to support only one target file if you want to remove an entry. Changing values or adding entries works, regardless of the number of targets.