[freeside-devel] configuration file location

ivan ivan at 420.am
Sun Mar 26 20:32:39 PST 2000


Sounds good.

Be careful with FS::Conf expecting the config store to understand the
difference between a empty, but defined value (i.e., an empty file) and a
missing file.

Also if you could, please patch against the current version from CVS. 

Thanks!

On Sun, Mar 26, 2000 at 07:58:50PM -0600, David Morton wrote:
> 
> As I go to add features, I thought it would be nice to have them more
> configurable, which would require a better configuration system.  Being
> lazy,
> I looked on CPAN to find routines that handle more complex configuration
> options:  AppConfig
> 
> Before I continue much further, I'd like to know the reason for some of
> the
> current structure.

Can you be more specific?

> It looks like the HTTP username points to a file via mapsecrets which
> has the data source name, which is then used in the rest of the
> configuration name.
> 
> This looks like too many steps, as well as being ugly as a
> file/directory name:
> DBI:mysql:database=freeside;host=secure.osprey.net
> 
> 
> What I'd like to see is:
> 
> HTTP USER  points to an entry in mapsecrets - a directory name.
> 
> this directory contains all the information for that company:
> 
> /usr/local/etc/freeside/mapsecrets
> /usr/local/etc/freeside/osprey/freeside.conf
> /usr/local/etc/freeside/acme/freeside.conf
> 
> and this way all the configurtion options are in one file, easy to set
> up.
> 
> With just a little work on FS::Conf and FS::UID, this should be set up
> fairly quickly.  I'll have a patch soon... :)

-- 
meow
_ivan



More information about the freeside-devel mailing list