[augeas-devel] Some ideas about how to use Augeas with IPA

David Lutterkort dlutter at redhat.com
Wed May 14 16:40:16 UTC 2008


On Wed, 2008-05-14 at 16:17 +0200, Dominique Dumont wrote:
> I'm interested in making configuration easy for any user (including
> newbies) even if it means providing a GUI [1] (which would not fit on
> a really small system) with embedded help and 

Not saying that it's the answer, but isn't that very close to the
system-config-* tools in Fedora ?

> immediate error return (i.e. at "set" time, not at "save" time)

Just a wild thought: you could simulate that with Augeas with doing the
following:
     1. pass AUG_SAVE_NEWFILE to aug_init, so that aug_save will write
        new stuff into files with .augnew extension
     2. when users create a new entry in Config::Model, create a
        'template' entry behind the scenes that you know is
        syntactically correct, and as users fill in fields, modify the
        template entry accordingly (those template entries would have to
        be written manually for each config file)
     3. every time you want to validate, call aug_save
     4. when the user hits 'save' in the UI, call aug_save and move
        the .augnew file over the 'proper' file

David





More information about the augeas-devel mailing list