On 2009-Apr-2, at 2:56 PM, engle wrote: > What I am looking for is some guidance on what the init.pp file would > look like basically 'CASE' on various puppetclass variables.
The case shouldn't be needed. If you have entries in LDAP with attributes such as objectClass: puppetClient puppetClass: webserver and you have this somewhere in your manifests class webserver { # stuff } then the "stuff" will get applied to the node that matches that LDAP entry. > Basically, all my computers are in > OU=computers,cn=blah,dc=blah,dc=blah. > > When 'puppetd' is run on the client, how does the puppetmaster server > know what to lookup in LDAP? Assuming you've added something like this to your puppet.conf node_terminus = ldap ldapserver = ldap.blah.blah ldapbase = ou=computers,cn=blah,dc=blah,dc=blah then the puppetmaster will search there for "(&(objectClass=puppetClient)(cn=fully.qualified.domain.name))". If it doesn't find anything using the FQDN, it will search using "cn=hostname" and if that fails, "cn=default". > I am sorry if this is all somewhat elementary, I am somewhat new to > LDAP as well as puppet. It took a fair bit of trial and error for me to understand, but it was worth it (and the documentation for using LDAP has improved quite a bit recently). -- Rob McBroom <http://www.skurfer.com/> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@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 -~----------~----~----~----~------~----~------~--~---