Hi, I haven't followed the entire discussion, but one small thing caught my attention:
On 14-12-10 19:15, Rameses Mss wrote: > In your base node (i.e., top level inheritance) set a default: > > node base { > $sshd_type="client" > include sshd > } > > node myclient inherits base { > } > > node myserver inherits base { > $sshd_type="server" > } > > This would require sshd_config.client. Override it on a per-node basis. > External nodes scripts make this sort of thing simpler. AFAIK, it doesn't work if you write it like this. Please correct me if I am wrong. I have tried this, and spent the better part of a day trying to find out why $ssh_type didn't have "server" on 'myserver', but "client". The parse order matters in this case, and it only works if you write it like this: node base { $sshd_type="client" } node myclient inherits base { include sshd } node myserver inherits base { $sshd_type="server" include sshd } The obvious downside being, that you have to write the include-line for each node separately. Best regards, Martijn. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.