huang mingyou
2008-Jan-17 03:47 UTC
A function can always run when a client connect to the pupetmaster?
hello,all I write a function. this function will write the client fqdn to a file. But this function only run one time when the puppetmaster recompile the configuration. How can let this function run every time when a client connect to the puppetmaster ? please help me. -- Huang Mingyou
Ohad Levy
2008-Jan-17 04:04 UTC
Re: A function can always run when a client connect to the pupetmaster?
Hi, I think you should have a look on facts... search the wiki for it. Ohad On Jan 17, 2008 11:47 AM, huang mingyou <therods@gmail.com> wrote:> hello,all > I write a function. this function will write the client fqdn to a > file. But this function only run one time when the puppetmaster > recompile the configuration. > How can let this function run every time when a client connect to > the puppetmaster ? please help me. > > -- > Huang Mingyou > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >_______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
huang mingyou
2008-Jan-17 04:08 UTC
Re: A function can always run when a client connect to the pupetmaster?
Tank you replay, I''ll search it. :) On 1/17/08, Ohad Levy <ohadlevy@gmail.com> wrote:> Hi, > > I think you should have a look on facts... search the wiki for it. > > Ohad > > > On Jan 17, 2008 11:47 AM, huang mingyou <therods@gmail.com > wrote: > > > > hello,all > > I write a function. this function will write the client fqdn to a > > file. But this function only run one time when the puppetmaster > > recompile the configuration. > > How can let this function run every time when a client connect to > > the puppetmaster ? please help me. > > > > -- > > Huang Mingyou > > _______________________________________________ > > Puppet-users mailing list > > Puppet-users@madstop.com > > https://mail.madstop.com/mailman/listinfo/puppet-users > > > > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users > >-- Huang Mingyou
huang mingyou
2008-Jan-17 07:18 UTC
Re: A function can always run when a client connect to the pupetmaster?
I can''t use facter for my work. I wan''t use the puppetmaster collect the puppet client ip he fqdn to a file. then use the file do other thins,like for nagios and cacti etc. But I can''t find some good method to do this . On 1/17/08, huang mingyou <therods@gmail.com> wrote:> Tank you replay, I''ll search it. :) > > On 1/17/08, Ohad Levy <ohadlevy@gmail.com> wrote: > > Hi, > > > > I think you should have a look on facts... search the wiki for it. > > > > Ohad > > > > > > On Jan 17, 2008 11:47 AM, huang mingyou <therods@gmail.com > wrote: > > > > > > hello,all > > > I write a function. this function will write the client fqdn to a > > > file. But this function only run one time when the puppetmaster > > > recompile the configuration. > > > How can let this function run every time when a client connect to > > > the puppetmaster ? please help me. > > > > > > -- > > > Huang Mingyou > > > _______________________________________________ > > > Puppet-users mailing list > > > Puppet-users@madstop.com > > > https://mail.madstop.com/mailman/listinfo/puppet-users > > > > > > > > > _______________________________________________ > > Puppet-users mailing list > > Puppet-users@madstop.com > > https://mail.madstop.com/mailman/listinfo/puppet-users > > > > > > > -- > Huang Mingyou >-- Huang Mingyou
David Schmitt
2008-Jan-17 08:24 UTC
Re: A function can always run when a client connect to the pupetmaster?
huang mingyou schrieb:> I can''t use facter for my work. > > I wan''t use the puppetmaster collect the puppet client ip he fqdn to a > file. then use the file do other thins,like for nagios and cacti etc. > > But I can''t find some good method to do this .See http://reductivelabs.com/trac/puppet/wiki/VirtualResources as used for example in my munin module at http://git.black.co.at/?p=module-munin;a=summary Regards, David
huang mingyou
2008-Jan-19 13:57 UTC
Re: A function can always run when a client connect to the pupetmaster?
yes, I had done it. thank you very much! On 1/17/08, David Schmitt <david@schmitt.edv-bus.at> wrote:> huang mingyou schrieb: > > I can''t use facter for my work. > > > > I wan''t use the puppetmaster collect the puppet client ip he fqdn to a > > file. then use the file do other thins,like for nagios and cacti etc. > > > > But I can''t find some good method to do this . > > See http://reductivelabs.com/trac/puppet/wiki/VirtualResources as used > for example in my munin module at > http://git.black.co.at/?p=module-munin;a=summary > > > > Regards, David > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >-- Huang Mingyou