Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: YAML + template/reuse

by clinton (Priest)
on Dec 01, 2007 at 16:54 UTC ( [id://654343]=note: print w/replies, xml ) Need Help??


in reply to YAML + template/reuse

Have a look at Config::Merge (my module). It's purpose is to load configuration trees (ie numerous files in a tree of directories) and to merge them as appropriate into a single hash.

While there is a default merge scheme, there are hooks available which allow you to make the merge as sophisticated as you like. There is also an example included in the distribution of how one might use file names to indicate which configuration overrides to apply based on machine name - you could alter this to be based on server type etc.

Feedback welcome :)

Clint

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://654343]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-03-28 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found