On Apr 19, 8:19 am, Jamaludin Ahmad <[email protected]> wrote: > Hi All, > > I'm new to puppet, I just recently setup it on my servers, using puppet > 0.25.4 with ldap external node and mongrel+nginx as frontend. Pretty much > happy about it, except by the fact that I can't get puppetrun to work as > expected. > > "puppetrun --host fqdn" works well, but that's all. > > "puppetrun --debug --foreground --all" only returned "Finished", no action > done, and no information for me to get it fixed. > > "puppetrun --debug --foreground --all --class classname" gave me "You must be > using LDAP to specify host classes". What's the meaning of host classes here? > Is it puppetClass ldap attribute, or something else? > ...<SNIP>.... > And this is one of node definition in ldap: > > dn: cn=sigi,ou=Hosts,dc=mydomain,dc=com > objectClass: top > objectClass: ipHost > objectClass: device > objectClass: puppetClient > cn: sigi > cn: sigi.mydomain.com > ipHostNumber: 192.168.7.3 > environment: production > puppetClass: general > puppetClass: pacemaker > puppetClass: lighttpd > puppetClass: php > puppetVar: web_role=dynamic >
When you are using LDAP and puppetrun, you do not do puppetrun --host <hostname>..., instead you use puppetrun --class <myclass> ... This will find all the hosts in your LDAP directory with "puppetClass: myclass", and contact all those. This won't work for classes that are associated with a host, but are not explicitly defined in your LDAP node entry. So, in your case, you could run: puppetrun --class pacemaker It would then connect to all your nodes listed in LDAP that use that class. If it is not working, then I would check your logs for your LDAP server to see if the queries are getting sent properly. -- 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.
