On Jun 27, 7:38 pm, Douglas Garstang <[email protected]> wrote:
> The problem with doing something with "${facility::ldap_server}" is
> that it should really be called "${facility::sjc::ldap_server}", and
> when you do that, you completely destroy the whole point of
> inheritance. The ldap client module itself should not directly
> reference the "${facility::sjc::ldap_server}" variable, otherwise I
> would see one ldap module for each facility!
>
> Doug
Ok, right. Then you can do something like:
class ldap::client {
include facility
use "${facility::ldap_server}" in this class
}
And in the facility class manage the logic to assign to ldap_server
the value you want according to the actual facility (this might be a
variable you define in nodes or a custom fact).
Al
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.