[augeas-devel] Suggestion for relative paths in augtool

Raphaël Pinson raphink at gmail.com
Thu Aug 28 12:18:01 UTC 2008


On Thu, Aug 28, 2008 at 12:25 PM, Daniel P. Berrange <berrange at redhat.com>wrote:

> 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
>


This is kind of what was proposed for the puppet augeas provider (see
http://www.mail-archive.com/augeas-devel@redhat.com/msg00490.html). This
provider uses "context" to set the base node for changes.


Raphaël
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20080828/42cc3152/attachment.htm>


More information about the augeas-devel mailing list