Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wrote a module which sets the mail of root in /etc/alias using the command "alias" I have a master node where I set this email like

node master {
    class{"rootmail": mail_dst => ""}

All child nodes inherit of the master as advised on many books. I have some particular child that need another email for root but the have to inherit from the master node. I tried to invoke the class rootmail but it causes error and says that the module were already declared.

Does one of you have had this case once ? Is there a turn around?


share|improve this question

extlookup is your answer. This function allows to use common value (xxx), and redeclare it only where it's really necessary.

share|improve this answer
Hiera should be used over extlookup these days where possible. – Shane Madden Jan 23 '13 at 6:52
Sounds nice, but is there another way? I'd like to avoid to have an external definition file. Thanks – DJYod Jan 23 '13 at 13:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.