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

Re: a debconf backend db finally...

On Sun, Feb 25, 2001 at 03:51:11PM -0800, Joey Hess wrote:
> Brian May wrote:
> > >>>>> "Joey" == Joey Hess <joeyh@debian.org> writes:
> > 
> >     Joey> No.
> > 
> > Why not?
> A better question would be "why?" 
> This is a fairly simple configuration file. It would look pretty
> horrendous in xml imho.

What's horrendous about the following?

<database name="mydb">
  <driver type="text"/>
  <directory path="/var/lib/debconf">

<database name="X">
  <driver type="Text"/>
  <directory path="/etc/X11/debconf/">
<database name="company">
  <driver type="SQL"/>
  <server name="debconf.foo.com"/>
  <user name="foo" password="bar"/>

<database name="dhcp">
  <driver type="DHCP">

<database name="passwords">
  <driver type="FlatFile">
  <file path="/etc/passwords.debconf.db"/>
  <permissions mode="600" owner="root" group="root"/>

That's actually more organized than your flat file.  It takes
advantage of dozens of tools that the sysadmin could use to edit or
view it.  And it means that you don't have to write your own parser.  

	sam th		     
	GnuPG Key:  

Attachment: pgpTZpbVfeUK4.pgp
Description: PGP signature

Reply to: