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 have tested the Sysctl lens behaviour on both versions 1.12.0 and 1.14.1, and both behave the same way under augtool
existing lines which do not have spaces around the '=' sign, do not have spaces inserted if the value is changed
new entries are created with spaces around the '=' sign
Can I ask you to check which version of Augeas you are moving from?
It may be a version earlier than 1.12.0
Given that the existing behaviour has been around for a while, I think changing it now will cause more problems than it solves.
Can I suggest a possible solution to the problem affecting the /etc/rc file might be to use an different lens, such as Simplelines
Simplelines will let you define the contents of a whole line of text at a time, giving you control of the spacing used.
The puppet type "augeas" allows you to specify the lens, overriding the default lens (Sysctl) which is associated with the file /etc/sysctl.conf
using Puppet to manage sysctls, with augeas-1.14.1 on OpenBSD, it creates /etc/sysctl.conf files with spaces around the = sign alike:
which breaks applying sysctls on (re-)boot via /etc/rc, as it doesn't expect, and handle these spaces well.
Before the update, there was no space around the = signs.
to exclude Puppet as eventual trouble maker, test manually with augtool to update /etc/sysctl.conf
The text was updated successfully, but these errors were encountered: