This looks really great. I will definately look into this approach. Thanks
for the tip!


Regards,
Kenneth

On Thu, Dec 10, 2009 at 12:47 PM, Ohad Levy <ohadl...@gmail.com> wrote:

> You might consider using extlookup (http://nephilim.ml.org/~rip/puppet/*
> extlookup*.rb)
> or if you use foreman, you could define variables in different levels (e.g.
> in the domain level, subnet level etc).
> cheers,
> Ohad
>
>   On Thu, Dec 10, 2009 at 7:19 PM, Kenneth Holter 
> <kenneho....@gmail.com>wrote:
>
>>   Hi.
>>
>>
>> Some types of configurations need different parameters depending on which
>> environment/network the puppet client reside in. An example is DNS
>> configuration found in /etc/resolv.conf, which may vary depending on which
>> network the puppet client is on. Another example is LDAP client setup, may
>> also vary depending on the LDAP server infrastucture.
>>
>> Is there any best practice on how to deal with these issues? I'm planning
>> on creating my own LDAP client module, and could need some advice on how to
>> solve this multiple environment/network problem. One way might be to define
>> variables such as "$environment = qass1.example.com" (or "$environment =
>> qass2.example.com" and so forth) in the node definition for every puppet
>> client, but maybe there's smarter ways of doing this.
>>
>>
>> Best regards,
>> Kenneth Holter
>>
>>
>>
>> --
>> 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<puppet-users%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>
>  --
> 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<puppet-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>

--

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.


Reply via email to