Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: dereferencing use module

by skx (Parson)
on May 24, 2014 at 00:01 UTC ( [id://1087280]=note: print w/replies, xml ) Need Help??


in reply to dereferencing use module

Although the other answers have already given you the help you need to solve your problem as-stated, I wonder if there isn't a better approach.

If you're just loading a module on a per-host basis, to get configuration data, why not load a config file instead?

Rather than loading the module just load and parse:

  • /etc/foo/default.conf
  • /etc/foo/$hostname.conf

That way you could distribute all your config to all hosts - via Puppet, Chef, or for the perl-lovers Slaughter, and the right thing will happen..

Steve
--

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-19 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found