On May 21, 2010, at 8:26 PM, Andrew Heagle <and...@logaan.com> wrote:

On May 21, 2010 08:51:59 am Dave Augustus wrote:
I have moved my node defs from files to LDAP but puppetmaster can't find
them.

I am using puppet 25.4-1.el5 with 389 ldap server and I have configured
puppetmaster to use LDAP all running on Centos 5.4 x86_64.

Here is the strange part:

The LDAP logs show the connection from puppetmaster.
The LDAP logs show the search for each node and the parent node with
successful results for each.
Puppetmaster always returns with "Could not find default node or by name
with 'server1.example.com, server1.example, server1' on node
server1.example.com"

I don't have default node defined.

This server is defined from several nodes like this:

server1.example.com->webserver(node)->public(node)->basenode(node)

Now using the LDAP attribute of parentNode to refer to the parent node
definition, my ldap entry looks like this:

dn: cn=server1.example.com,ou=hosts,dc=example,dc=com
cn: server1.example.com
ipHostNumber: 192.168.1.1
objectClass: top
objectClass: device
objectClass: iphost
objectClass: puppetclient
parentNode: basenode
puppetClass: dns-setup
puppetClass: sshd-setup
puppetClass: bacula-setup
entrydn: cn=server1.example.com,ou=hosts,dc=example,dc=com
hassubordinates: FALSE
numsubordinates: 0
subschemasubentry: cn=schema

Why can't puppetmaster see my node defs?

Thanks,
Dave Augustus


Do you have any nodes defined in your site.pp or any other file that your site.pp might import? If you do, LDAP will not work properly. It didn't for me
anyway.

Regards,
Andrew

--
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 .


I removed all my node definitions from files when I put them in ldap- but I will double check.

Thanks for the tip.
Dave Augustus

--
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