huangmingyou
2008-Apr-08 12:56 UTC
[Puppet Users] have some body successful use enhost to gather host infermation into ldap server ?
hi,guys In the debian 4.0, facter version is 1.3.8,I use enhost get a error like this. host2:~# enhost adding cn=host2,ou=Hosts,dc=example,dc=com Could not add host: Couldn''t match attrs how to debug enhost ? huang mingyou --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-Apr-08 14:40 UTC
[Puppet Users] Re: have some body successful use enhost to gather host infermation into ldap server ?
On Apr 8, 2008, at 7:56 AM, huangmingyou wrote:> hi,guys > In the debian 4.0, facter version is 1.3.8,I use enhost get a > error like this. > host2:~# enhost > adding cn=host2,ou=Hosts,dc=example,dc=com > Could not add host: Couldn''t match attrs > > how to debug enhost ?Enhost has a schema associated with it; you need to add that to your ldap server. Also, AFAIK, enhost hasn''t been used by many people in a while, so there''s a good chance it''s gotten a bit crufty. -- I don''t always know what I''m talking about, but I''m always pretty much convinced that I''m right. -- Mojo Nixon --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
huangmingyou
2008-Apr-08 23:51 UTC
[Puppet Users] Re: have some body successful use enhost to gather host infermation into ldap server ?
oh,the ldap server only include the puppet.schema at this time, but in the enhost and facter package I can''t find some schema file. where is the enhost''s schema file ? On Apr 8, 10:40 pm, Luke Kanies <l...@madstop.com> wrote:> On Apr 8, 2008, at 7:56 AM, huangmingyou wrote: > > > hi,guys > > In the debian 4.0, facter version is 1.3.8,I use enhost get a > > error like this. > > host2:~# enhost > > adding cn=host2,ou=Hosts,dc=example,dc=com > > Could not add host: Couldn''t match attrs > > > how to debug enhost ? > > Enhost has a schema associated with it; you need to add that to your > ldap server. > > Also, AFAIK, enhost hasn''t been used by many people in a while, so > there''s a good chance it''s gotten a bit crufty. > > -- > I don''t always know what I''m talking about, but I''m always pretty much > convinced that I''m right. -- Mojo Nixon > --------------------------------------------------------------------- > Luke Kanies |http://reductivelabs.com|http://madstop.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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-Apr-09 02:33 UTC
[Puppet Users] Re: have some body successful use enhost to gather host infermation into ldap server ?
On Apr 8, 2008, at 6:51 PM, huangmingyou wrote:> oh,the ldap server only include the puppet.schema at this time, but in > the enhost and facter package I can''t find some schema file. where is > the enhost''s schema file ?http://reductivelabs.com/trac/enhost/browser/trunk/conf/enhost.schema -- Millions long for immortality who do not know what to do with themselves on a rainy Sunday afternoon. -- Susan Ertz --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
huangmingyou
2008-Apr-09 08:45 UTC
[Puppet Users] Re: have some body successful use enhost to gather host infermation into ldap server ?
yeah,it works. I want add some other usefull infermation like memory and some other variable.how todo this ? need modify the enhost.schema or the enhost configure or even the enhost exec file ? On Apr 9, 10:33 am, Luke Kanies <l...@madstop.com> wrote:> On Apr 8, 2008, at 6:51 PM, huangmingyou wrote: > > > oh,the ldap server only include the puppet.schema at this time, but in > > the enhost and facter package I can''t find some schema file. where is > > the enhost''s schema file ? > > http://reductivelabs.com/trac/enhost/browser/trunk/conf/enhost.schema > > -- > Millions long for immortality who do not know what to do with > themselves on a rainy Sunday afternoon. -- Susan Ertz > --------------------------------------------------------------------- > Luke Kanies |http://reductivelabs.com|http://madstop.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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-Apr-09 14:47 UTC
[Puppet Users] Re: have some body successful use enhost to gather host infermation into ldap server ?
On Apr 9, 2008, at 3:45 AM, huangmingyou wrote:> yeah,it works. I want add some other usefull infermation like memory > and some other variable.how todo this ? need modify the enhost.schema > or the enhost configure or even the enhost exec file ? >I actually can''t remember. Probably just modify the schema, but it''s a very simple tool -- just look through it, see what you can figure out. -- Nature and nature''s laws lay hid in night, God said, "Let Newton be," and all was light. It did not last; the devil howling "Ho! Let Einstein be!" restored the status quo. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
jpruitt@juniper.net
2008-Apr-10 07:40 UTC
[Puppet Users] Re: have some body successful use enhost to gather host infermation into ldap server ?
Ya, I just did this and Im pretty sure that all I had to do was extend the schema. I even went through the code to be sure and IIRC enhost gets a list of available attributes from the LDAP server, compares with what facter provides, and populates what it can. - Jeremy On Apr 9, 7:47 am, Luke Kanies <l...@madstop.com> wrote:> On Apr 9, 2008, at 3:45 AM, huangmingyou wrote: > > > yeah,it works. I want add some other usefull infermation like memory > > and some other variable.how todo this ? need modify the enhost.schema > > or the enhost configure or even the enhost exec file ? > > I actually can''t remember. Probably just modify the schema, but it''s > a very simple tool -- just look through it, see what you can figure out. > > -- > Nature and nature''s laws lay hid in night, > God said, "Let Newton be," and all was light. > > It did not last; the devil howling "Ho! > Let Einstein be!" restored the status quo. > --------------------------------------------------------------------- > Luke Kanies |http://reductivelabs.com|http://madstop.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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---