Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 => "xxxx@domain.com"}
}

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?

Thanks

share|improve this question
add comment

1 Answer

http://docs.puppetlabs.com/references/latest/function.html#extlookup

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
1  
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
add comment

Your Answer

 
discard

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.