#525 [RFE] Use augeas to perform config file changes
Closed: wontfix 3 years ago by pcech. Opened 13 years ago by jhrozek.

On many places, especially in the installer, we need to change contents of a config file. Instead of ad-hoc routines we use now, we might want to use augeas - http://augeas.net/ which provides safe means to modify a file. Augeas works by transforming a config file into a tree based on grammar of the file and then modifying the tree.

I think this is a post-2.0 ticket.


We could use augeas at least on named_conf_get_directive() and named_conf_get_directive() functions.

Currently these functions parse named.conf per line, if user instead of

options {

uses

options
{

they stop working.

Replying to [comment:5 mbasti]:

We could use augeas at least on named_conf_get_directive() and named_conf_get_directive() functions.

Currently these functions parse named.conf per line, if user instead of
{{{
options {
}}}
uses
{{{
options
{
}}}
they stop working.

Can you please attach an example named.conf file?

Metadata Update from @jhrozek:
- Issue assigned to jcholast
- Issue set to the milestone: Tickets Deferred

7 years ago

Metadata Update from @pcech:
- Issue close_status updated to: wontfix
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata