On Fri, Nov 26, 2010 at 04:02:28PM -0500, Jon Masters wrote: > Hi Olaf, > > Thanks for posting about your project. > > On Fri, 2010-11-26 at 10:24 +0100, Olaf Kirch wrote: > > > 1. ifcfg files are dead > > Ok. But I think we want to be very careful with this. Yes, it's nice to > use structured data formats but IMO we want to make sure sysadmins can > still edit files by hand without using any kind of Linux Registry to do > it (g/dconf/etc). So if you're just proposing making the format have > some kind of structured standard, ok, but please don't go too far :) .. and remember that Augeas solves the problem of having traditional config files that can be edited in a structured way, including preserving all the comments and whitespace and everything else. # augtool match '//files/etc/ntp.conf/server[*]' /files/etc/ntp.conf/server[1] = 0.fedora.pool.ntp.org /files/etc/ntp.conf/server[2] = 1.fedora.pool.ntp.org /files/etc/ntp.conf/server[3] = 2.fedora.pool.ntp.org /files/etc/ntp.conf/server[4] = 3.fedora.pool.ntp.org # augtool <<EOF > set '//files/etc/ntp.conf/server[1]' ntp.annexia.org > save > EOF Saved 1 file(s) # augtool match '//files/etc/ntp.conf/server[*]' /files/etc/ntp.conf/server[1] = ntp.annexia.org /files/etc/ntp.conf/server[2] = 1.fedora.pool.ntp.org /files/etc/ntp.conf/server[3] = 2.fedora.pool.ntp.org /files/etc/ntp.conf/server[4] = 3.fedora.pool.ntp.org [ then look at /etc/ntp.conf to verify that all comments and formatting are preserved ] Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel