Dear Maintainer,
I use Augeas in my Puppet manifests to control the contents of sysctl.conf.
After upgrading my workstation to jessie/testing I found I had a directory
/etc/sysctl.d and Augeas reads all the files in it (I'm not sure which of these
are new).
This directory includes a file named README.sysctl which sysctl does not read
according to sysctl.conf(5). That also fits with the content of that file
which is plain English. Augeas however does and complains about its contents.
Puppet logs messages like:
Debug: Augeas[enable forwarding](provider=augeas): Opening augeas with root /, lens path , flags 32
Debug: Augeas[enable forwarding](provider=augeas): Augeas version 1.0.0 is installed
Warning: Augeas[enable forwarding](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output
Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/pos = 0
Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/line = 1
Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/char = 0
Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/lens = /usr/share/augeas/lenses/dist/sysctl.aug:36.10-.52:
Debug: Augeas[enable forwarding](provider=augeas): /augeas/files/etc/sysctl.d/README.sysctl/error/message = Iterated lens matched less than it should
Debug: Augeas[enable forwarding](provider=augeas): Will attempt to save and only run if files changed
Debug: Augeas[enable forwarding](provider=augeas): sending command 'set' with params ["/files/etc/sysctl.conf/net.ipv4.ip_forward", "1"]
Debug: Augeas[enable forwarding](provider=augeas): Closed the augeas connection
I expected the Augeas lens for sysctl.conf to ignore files not named *.conf in
/etc/sysctl.d.
Marking everything in README.sysctl in /etc/sysctl.d as comments with '#'
works around the problem.
Best regards
/Ulrik Haugen