[augeas-devel] [Augeas] #185: Add a postgresql module
Augeas
trac at fedorahosted.org
Fri Mar 18 01:51:40 UTC 2011
#185: Add a postgresql module
--------------------------+-------------------------------------------------
Reporter: fredj | Owner: lutter
Type: enhancement | Status: new
Priority: minor | Milestone: next
Component: Augeas | Version:
Resolution: | Keywords:
--------------------------+-------------------------------------------------
Comment (by fgiraldeau):
Good start, here are some hints to continue.
New lens comes usually with the corresponding test lens. For example, the
postgresql.aug lens should come with test_postgresql.aug lens. Here is
what it can looks like.
{{{
module Test_postgresql =
test Postgresql.lns get "key = value\n" = { "key" = "value" }
}}}
Run the test with augparse like this, your postgresql.aug lens in lensdir:
augparse -I /path/to/lensdir test_postgresql.aug
You can use the file /usr/share/postgresql/8.4/postgresql.conf.sample and
use configuration items as a source of tests.
I saw also other configuration files for postgresql.conf that may have the
same format, like pg_ctl.conf and also recovery.conf...
You may want to unquote value strings, that is a bit nasty to do. Does the
configuration accepts single and double quotes for values? Also, I saw few
directives that seem requiring unite (ex: kb, ms, etc.)
Have fun!
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/185#comment:2>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list