This is not a Perl question, per se... but I need to implement a solution for our company's internal home-grown apps, almost all of which are in Perl.

These programs all need to store configuration information—user preferences, user access restrictions, parameters by which to access this database or that, etc. Currently, these apps store their configuration in a hodgepodge of different ways: Most of them have their config parameters hardcoded into them, or hardcoded into a library; some use config files, some use database tables.

I'd like to unify and simplify this. I'd like to have one place on our network where applications can query and update their configuration settings, and where admins can change settings. But how?

A configuration file in a central location would be simple, but then anyone could read it, could see how to connect to the databases, etc. And where to put it?

But what's the alternative? Some dedicated configuration server that responds to SOAP queries over SSL?


In reply to Where to store configuration information? by Sue D. Nymme

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.