| 1 |
Source: libconfig-model-backend-augeas-perl |
| 2 |
Maintainer: Debian Perl Group <[email protected]> |
| 3 |
Uploaders: Dominique Dumont <[email protected]> |
| 4 |
Section: perl |
| 5 |
Testsuite: autopkgtest-pkg-perl |
| 6 |
Priority: optional |
| 7 |
Build-Depends: debhelper-compat (= 13), |
| 8 |
libmodule-build-perl |
| 9 |
Build-Depends-Indep: libaugeas-dev, |
| 10 |
libconfig-augeas-perl <!nocheck>, |
| 11 |
libconfig-model-itself-perl <!nocheck>, |
| 12 |
libconfig-model-perl <!nocheck>, |
| 13 |
libconfig-model-tester-perl <!nocheck>, |
| 14 |
libexception-class-perl <!nocheck>, |
| 15 |
liblog-log4perl-perl <!nocheck>, |
| 16 |
libmouse-perl <!nocheck>, |
| 17 |
libtest-differences-perl <!nocheck>, |
| 18 |
libtest-exception-perl <!nocheck>, |
| 19 |
libtest-pod-perl <!nocheck>, |
| 20 |
libtest-warn-perl <!nocheck>, |
| 21 |
pkg-config |
| 22 |
Standards-Version: 4.6.0 |
| 23 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libconfig-model-backend-augeas-perl |
| 24 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libconfig-model-backend-augeas-perl.git |
| 25 |
Homepage: https://metacpan.org/release/Config-Model-Backend-Augeas |
| 26 |
Rules-Requires-Root: no |
| 27 |
|
| 28 |
Package: libconfig-model-backend-augeas-perl |
| 29 |
Architecture: all |
| 30 |
Depends: ${misc:Depends}, |
| 31 |
${perl:Depends}, |
| 32 |
libconfig-augeas-perl, |
| 33 |
libconfig-model-perl, |
| 34 |
libexception-class-perl, |
| 35 |
liblog-log4perl-perl, |
| 36 |
libmouse-perl |
| 37 |
Description: config-model reader and writer powered by Augeas |
| 38 |
Config::Model::Backend::Augeas provides a way to load or store |
| 39 |
configuration data through Config::Augeas. This way, the structure and |
| 40 |
comments of the original configuration file are preserved. |
| 41 |
. |
| 42 |
With Config::Model::Backend::Augeas, Config::Model now provides a way |
| 43 |
to load and save data through RedHat's Augeas library. |
| 44 |
. |
| 45 |
Config::Model and Augeas are both configuration editing tool. Both |
| 46 |
parse configuration files in their native formats and transforms them |
| 47 |
into a tree. Configuration changes are made by manipulating this tree |
| 48 |
and saving it back into native config files. |
| 49 |
. |
| 50 |
Both Augeas and Config::Model rely on a tree to represent |
| 51 |
configuration data. |
| 52 |
. |
| 53 |
On one side, Augeas is able to load and write data while respecting |
| 54 |
the structure and comments of the original configuration file. But |
| 55 |
Augeas purpose is not to validate the semantic content of the |
| 56 |
configuration file. |
| 57 |
. |
| 58 |
On the other side, Config::Model is able to validate the semantic |
| 59 |
content of the configuration file, but it may discard all comments and |
| 60 |
will write back configuration data using a canonical order. Thus the |
| 61 |
structure of the original configuration file is not preserved. |
| 62 |
. |
| 63 |
You can now have the best of both worlds by using the Augeas library |
| 64 |
to load and write data from Config::Model configuration tree. You can |
| 65 |
now instruct Config::Model to use Augeas. See |
| 66 |
Config::Model::BackendMgr for details. |
| 67 |
. |
| 68 |
Unfortunately, you must ensure that the tree representation specified |
| 69 |
in Config::Model and Augeas lens are quite close together: |
| 70 |
- Config::Model element names and Augeas lens names must be identical |
| 71 |
- Both structures must be very close. Each Config::Model node must |
| 72 |
have a corresponding lens. |
| 73 |
. |
| 74 |
See Config::Model::Backend::Augeas documentation to use Augeas with |
| 75 |
your configuration model. |
| 76 |
. |
| 77 |
For more details on Config::Model see: |
| 78 |
. |
| 79 |
https://github.com/dod38fr/config-model/wiki |
| 80 |
. |
| 81 |
For more details on Augeas, see: |
| 82 |
. |
| 83 |
http://augeas.net |