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? This is a part of my puppet.conf: [puppetmasterd] templatedir=/var/lib/puppet/templates ssl_client_header = HTTP_X_SSL_SUBJECT certname = puppet node_terminus = ldap ldapserver = 127.0.0.1 ldapbase = ou=Hosts,dc=mydomain,dc=com ldapuser = cn=guest,ou=People,dc=mydomain,dc=com ldappassword = _password_ storeconfigs = true thin_storedconfigs = true dbadapter = mysql dbserver = localhost dbuser = puppet dbpassword = _password_ 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 And another strange thing when I try to install puppet-dashboard. /tmp/puppet-dashboard$ rake --version rake, version 0.8.7 /tmp/puppet-dashboard$ rake install (in /tmp/puppet-dashboard) Missing these required gems: rake >= 0.8.3 You''re running: ruby 1.8.7.72 at /usr/bin/ruby1.8 rubygems 1.2.0 at /var/lib/gems/1.8 Why is that? Thanks in advance for any hint, and if my questions is not clear enough, please blame it on my sloppy english :) -jamal- -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Apr 19, 8:19 am, Jamaludin Ahmad <j.ah...@gmx.net> 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, Apr 20, 2010 at 9:48 PM, Andrew Heagle <logaan777@gmail.com> wrote:> > 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. >that''s what i got from the documents, yes.. but not from my experience. # puppetrun --class pacemaker You must be using LDAP to specify host classes while indeed it''s there in ldap. i''ve set ldap loglevel to debug mode, and didn''t see any indication that puppetrun sent any queries at all. -- -jamal- -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Wed, Apr 21, 2010 at 1:39 AM, Jamaludin Ahmad <jamaludin@gmail.com> wrote:> On Tue, Apr 20, 2010 at 9:48 PM, Andrew Heagle <logaan777@gmail.com> wrote: >> >> 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. >> > > that''s what i got from the documents, yes.. but not from my experience. > > # puppetrun --class pacemaker > You must be using LDAP to specify host classes > > while indeed it''s there in ldap. > > i''ve set ldap loglevel to debug mode, and didn''t see any indication > that puppetrun sent any queries at all. > > -- > -jamal- >ah, sorry for replying to my own email, i got the problem. thanks for the hint for me to look at ldap''s log. puppetrun never run any queries to ldap because my ldap configuration is under "puppetmasterd" namespace. i move it to [main], and it''s fixed. again, thanks.. -- -jamal- -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.