Debian Codegraph @

README

raw
1 With Config::Model::Backend::Augeas, Config::Model now provides a way
2 to load and save data through RedHat's Augeas library.
3
4 Config::Model and Augeas are both configuration editing tool. Both
5 parse configuration files in their native formats and transforms them
6 into a tree. Configuration changes are made by manipulating this tree
7 and saving it back into native config files.
8
9 Both Augeas and Config::Model rely on a tree to represent
10 configuration data.
11
12 On one side, Augeas is able to load and write data while respecting
13 the structure and comments of the original configuration file. But
14 Augeas purpose is not to validate the semantic content of the
15 configuration file.
16
17 On the other side, Config::Model is able to validate the semantic
18 content of the configuration file, but it may discard all comments and
19 will write back configuration data using a canonical order. Thus the
20 structure of the original configuration file is not preserved.
21
22 You can now have the best of both worlds by using the Augeas library
23 to load and write data from Config::Model configuration tree. You can
24 now instruct Config::Model to use Augeas backend in the autoread and
25 autowrite feature. See Config::Model::BackendMgr for details.
26
27 Unfortunately, you must ensure that the tree representation specified
28 in Config::Model and Augeas lens are quite close together:
29 - Config::Model element names and Augeas lens names must be identical
30 - Both structures must be very close. Each Config::Model node must
31 have a corresponding lens.
32
33 See Config::Model::Backend::Augeas documentation to use Augeas with
34 your configuration model.
35
36 For more details on Config::Model see:
37
38 https://github.com/dod38fr/config-model/wiki
39
40 For more details on Augeas, see:
41
42 http://augeas.net
43
44 ----------------------------------------------------------------------
45
46 BUGS
47
48 Augeas 0.3.5 does not handle properly locale on 64 bits
49 architecture. This is currently being fixed. In the meantime, you must
50 set either environment variables to "C" locale:
51 LANG=C
52 LC_COLLATE=C
53
54 ----------------------------------------------------------------------
55
56 Copyright (c) 2008-2013 Dominique Dumont.
57
58 This file is part of Config-Model-Backend-Augeas.
59
60 Config-Model-Backend-Augeas is free software; you can redistribute
61 it and/or modify it under the terms of the GNU Lesser Public
62 License as published by the Free Software Foundation; either
63 version 2.1 of the License, or (at your option) any later version.
64
65 Config-Model is distributed in the hope that it will be useful,
66 but WITHOUT ANY WARRANTY; without even the implied warranty of
67 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
68 Lesser Public License for more details.
69
70 You should have received a copy of the GNU Lesser Public License
71 along with Config-Model; if not, write to the Free Software
72 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
73 02110-1301 USA
74
75 ----------------------------------------------------------------------
76
77 INSTALLATION
78
79 tar zxvf <dist_file>.tar.gz
80 cd <dist_directory>
81 perl Build.PL
82 ./Build test
83
84 If you want to install this software without packaging, type also:
85
86 ./Build install