[libvirt] PATCH: Add a augeas lens for libvirtd.conf

Richard W.M. Jones rjones at redhat.com
Wed Aug 27 11:04:17 UTC 2008


On Tue, Aug 26, 2008 at 09:05:37PM +0100, Daniel P. Berrange wrote:
> Augeas is a awesome config file manipulation tool. libvirtd has a config
> file. libvirtd meet augeas; augeas meet libvirt.
> 
> Now instead of telling people 
> 
>   'edit /etc/libvirt/libvirtd.conf and change listen_tls to 1,
>    and auth_tls to sasl'
> 
> we can say run
> 
>    # augtool <<EOF
>    set /files/etc/libvirt/libvirtd.conf/listen_tls 1
>    set /files/etc/libvirt/libvirtd.conf/auth_tls sasl
>    save
>    EOF
>    
> THis patch is intended to be committed to libvirt, so the config file rules
> are distributed alongside libvirt. I'm CC'ing augeas-devel for feedback on
> the lens itself.
> 
>  libvirt.spec.in         |    2 
>  qemud/Makefile.am       |    8 
>  qemud/libvirtd.aug      |   64 ++++++
>  qemud/test_libvirtd.aug |  484 ++++++++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 558 insertions(+)

+1, to the general concept, and the code apart from the lens itself
which I didn't look at too closely.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
Read my OCaml programming blog: http://camltastic.blogspot.com/
Fedora now supports 64 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora




More information about the libvir-list mailing list