-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please allow for the use of /
as a key separator, as described in the sysctl
man page
#17
Comments
Related: hercules-team/augeas#176 |
I've noticed that puppet-agent 7.19.0 has been released which has augeas-1.13.0. See https://tickets.puppetlabs.com/browse/PA-4494 However, a sysctl key with / in it still doesn't work. Is there something more that needs to be done, e.g. in puppet-augeasproviders_sysctl or puppet-augeasproviders_core? I had a brief look and it seems that the path is being set wrongly
|
This is also discussed in hercules-team/augeas/pull/755 |
Just an FYI for anyone following here - I can confirm VLAN '/' separator still does not work with
It looks like the updated lens dropped into augeas 9 months ago - https://github.com/hercules-team/augeas/blob/master/lenses/sysctl.aug and has support for more "non-alphabetic" characters and is part of the 1.14.0 release I am not sure how to wrangle this into the system before the agent is updated |
Ok, so I am almost there. I have confirmed that I can run
Now, when I run puppet with the sysctl lens from 1.14/HEAD, I am sooo close! The commands are mostly run and puppet fails on a weird UTF-8 invalid byte sequence If I was to guess, maybe the provider needs to escape the
|
Follow up - that 'invalid byte sequence' phrase appears in I suspect more work is required in
|
A good night's sleep and I worked out that the provider needed to quote the slashes in strings only when communicating with augeas and not every time the key is used With the changes in PR #79 plus the new sysctl lens jammed into the puppet agent, I managed to get a working add/modify/delete for strings with a
and
|
This also works for me dropping the 1.14 |
In RHEL, the
sysctl
man page describes the use of/
as a key separator instead of.
:This is required in situations where a sub-key name itself includes a
.
, such as network interfaces with vlans (bond0.209
for example). Specifically:As seen in the output of the second example, you can apparently also replace a
.
in the sub-key name with a/
.However, neither work-around works with the augeas provider, because the
/
apparently breaks the parsing of the key names:Please update the augeas lens to allow the use of this work-around.
The text was updated successfully, but these errors were encountered: