[augeas-devel] [Augeas] #216: Support path context for aug_srun
Augeas
trac at fedorahosted.org
Sun Aug 14 11:16:59 UTC 2011
#216: Support path context for aug_srun
--------------------------+-------------------------------------------------
Reporter: domcleal | Owner: lutter
Type: enhancement | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: devel
Resolution: | Keywords: aug_srun
--------------------------+-------------------------------------------------
Comment (by domcleal):
Replying to [comment:1 lutter]:
> I was going to suggest that you can just use 'defvar ctx
/files/etc/fstab' and then 'set $ctx/*[file = '/']/opt noatime', but that
doesn't quite work, since the defvar will immediately set ctx to the node
'/files/etc/fstab', and if that does not exist yet, the 'set' will fail.
Unfortunately that still means we have to parse commands, or have users
modify their commands (which I support, given it's a bit more explicit).
> I guess we need a new 'context' API call and command that mimicks the
textual substitution that the puppet provider does. Alternatively, we
could just use a special node, say '/augeas/context' that will always be
prepended to relative paths.
This makes sense, but at what level would Augeas support it? As part of
aug_srun only, or at a lower level so even the API calls would heed it?
This solution sounds best to me.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/216#comment:2>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list