[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#513016: ITP: libconfig-model-backend-augeas-perl -- Read and write configuration data through Augeas



Package: wnpp
Severity: wishlist
Owner: Dominique Dumont <domi.dumont@free.fr>


* Package name    : libconfig-model-backend-augeas-perl
  Version         : 0.102-1
  Upstream Author : Dominique Dumont <ddumont@cpan.org>
* URL             : http://search.cpan.org/dist/Config-Model-Backend-Augeas/
* License         : LGPL
  Programming Lang: Perl
  Description     : Read and write configuration data through Augeas

With Config::Model::Backend::Augeas, Config::Model now provides a way
to load and save data through RedHat's Augeas library.

Config::Model and Augeas are both configuration editing tool.  Both
parse configuration files in their native formats and transforms them
into a tree. Configuration changes are made by manipulating this tree
and saving it back into native config files.

Both Augeas and Config::Model rely on a tree to represent
configuration data. 

On one side, Augeas is able to load and write data while respecting
the structure and comments of the original configuration file. But
Augeas purpose is not to validate the semantic content of the
configuration file.

On the other side, Config::Model is able to validate the semantic
content of the configuration file, but it will discard all comments
and will write back configuration data using a canonical order. Thus
the comments and structure of the original configuration file is not
preserved.

You can now have the best of both worlds by using the Augeas library
to load and write data from Config::Model configuration tree. You can
now instruct Config::Model to use Augeas backend in the autoread and
autowrite feature. See Config::Model::Autoread for details.

Unfortunately, you must ensure that the tree representation specified
in Config::Model and Augeas lens are quite close together:
- Config::Model element names and Augeas lens names must be identical
- Both structures must be very close. Each Config::Model node must
  have a corresponsing lens.

For more details on Config::Model see:

   http://config-model.wiki.sourceforge.net/

For more details on Augeas, see:

   http://augeas.net


-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)



Reply to: