[augeas-devel] [Augeas] #13: Allow setting a 'current node' in augtool
Augeas
trac at fedorahosted.org
Thu Aug 28 20:18:54 UTC 2008
#13: Allow setting a 'current node' in augtool
--------------------+-------------------------------------------------------
Reporter: lutter | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: wishlist
Component: Augeas | Version: devel
Keywords: |
--------------------+-------------------------------------------------------
From Dan Berrange on the [[https://www.redhat.com/archives/augeas-
devel/2008-August/msg00325.html mailing list]]
Say I want to set a bunch of parameters in the libvirt config file. It
would be something like this
{{{
# augtool
set /files/etc/libvirt/libvirtd.conf/listen_tls 0
set /files/etc/libvirt/libvirtd.conf/listen_tcp 1
set /files/etc/libvirt/libvirtd.conf/auth_tcp sasl
save
quit
}}}
That's passable when only setting a few parameters, but the more I want
to change the more tedious it becomes to repeat the long path every
time.
Thus I'd like to suggest that augtool gets a command to change the base
path that it resolves against, so I could do something like
{{{
# augtool
basepath /files/etc/libvirt/libvirtd.conf
set listen_tls 0
set listen_tcp 1
set auth_tcp sasl
save
quit
}}}
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/13>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list