[augeas-devel] [Augeas] #216: Support path context for aug_srun
Augeas
trac at fedorahosted.org
Fri Aug 12 19:34:03 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 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.
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.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/216#comment:1>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list