-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
sysctl doesn't work for keys that contain slash, e.g. VLANs #102
Comments
I don't think Augeas itself will support this, as it stores the sysctl name in the label of the node, so it can't contain slashes. We'll need to fix this in Augeas first, which is going to be very disruptive... |
Is there something I can do to help bring this forward? |
I remember hitting this issue before, and thinking that sysctl should be parsed as subnodes with However, this definitely means breaking compatibility for the lens. I'm opening hercules-team/augeas#176 for this. |
I don't have an easy way to test this but why not munge the name so that all slashes are escaped in the provider? |
@trevor-vaughan the problem though is down to the Augeas lens here. There is currently no way to set such keys in the lens. |
That makes sense and I certainly see the issue. So, this would be a core patch to augeas to allow for the specification of an alternate key separator? I would vote for a pipe since that tends to be the usual regex alternative that I've seen used. |
@trevor-vaughan ah, you would just remap "/" as "|" in the labels? |
Yeah, I would give the user the ability to either use '/' or '|' as they desire so long as it is consistent within a given reference. Alternatively, you could support escapes in keys but that seems hideous and prone to insanity. |
As far as the Augeas lens is concerned, supporting |
Would it be possible to support both? If '/' is the first character, that's the separator, if '|' is, then that is the separator. Basically, either should be supported since that gives you a way to ensure that you cover all key cases (ok, except for keys that have both / and | but that's crazy and I don't want to live on those systems). |
It's not possible in tree, but it could be remapped in the provider as you suggested. However, I'm not a big fan of this. |
@trevor-vaughan when it comes to the lens itself, it would be better to discuss this in hercules-team/augeas#176 |
Has there been any fixes/workarounds for this issue? |
Please check voxpupuli/puppet-augeasproviders_sysctl#17 |
It is OK to have sysctl keys with slashes in them:
However, it seems that one cannot really apply them. The following Puppet manifest:
...results in this:
The text was updated successfully, but these errors were encountered: