Hello Group I am trying to setup puppet so that when a new client connects to the server, the puppetd from the client can update a resource on the puppetmasted server with its IP address, fqdn and alias, so that this info can be distributed to all the known clients of the network. From what I understand the puppet master server would have these details from facter, and wonder if the above can be scripted. Thanks for any inputs. Hari --~--~---------~--~----~------------~-------~--~----~ 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 Thu, Apr 30, 2009 at 1:59 PM, haribole <rdu.hari@gmail.com> wrote:> > Hello Group > > I am trying to setup puppet so that when a new client connects to the > server, the puppetd from the client can update a resource on the > puppetmasted server with its IP address, fqdn and alias, so that this > info can be distributed to all the known clients of the network. > > From what I understand the puppet master server would have these > details from facter, and wonder if the above can be scripted. > > Thanks for any inputs. >That information is probably in the /var/lib/puppet/yaml/node/$fqdn.yaml files Matt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I do this using storedconfigs and virtual resources for hosts. For example: @@host { "$hostname.private": ip => $ipaddress_eth1, ensure => present, alias => "$hostname" } Host <<| |>> What this does is when the machine first connects, it creates a virtual resource for itself, then when another machine connects, it will realize it and get added to the machine''s /etc/hosts Hope this helps. Cheers, Eric On Thu, Apr 30, 2009 at 10:59:39AM -0700, haribole wrote:> > Hello Group > > I am trying to setup puppet so that when a new client connects to the > server, the puppetd from the client can update a resource on the > puppetmasted server with its IP address, fqdn and alias, so that this > info can be distributed to all the known clients of the network. > > From what I understand the puppet master server would have these > details from facter, and wonder if the above can be scripted. > > Thanks for any inputs. > > Hari > > >-- Eric Gerlach, Network Administrator Federation of Students University of Waterloo p: (519) 888-4567 x36329 e: egerlach@feds.uwaterloo.ca --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---