Vipul Ramani
2008-May-29 20:12 UTC
[Puppet Users] Auto refresh or auto updates - when file is updated !!!
Hi all, I m trying to set auto-refresh or auto updates using puppet. like when i will updated vfstab .Same updates must be pushed at all clients. ----site.pp-------- class vfstab { file { "/etc/vfstab": ensure => present, owner => root, group => sys, mode => 644, source => "puppet://solaris1.xxxxxcom/files/vfstab" } exec { subscribe-echo: logoutput => false, refreshonly => true, subscribe => file["/etc/vfstab"] } node default { include vfstab } ------------------- i am updating /etc/puppet/files/vfstab file but puppetmaster doesnot push same changes to all clients .. ----------var/adm/messages----------- May 29 13:02:06 solaris1 puppetmasterd[1323]: [ID 702911 daemon.notice] Starting Puppet server version 0.23.2 -------------------------------------------------- Can i configured like . once i will updates the file it will push updates to all default clients after 1 min ??? And last ...puppetmaster is great !!! Regards Vipul Ramani ~ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Mike Renfro
2008-May-29 20:47 UTC
[Puppet Users] Re: Auto refresh or auto updates - when file is updated !!!
On 5/29/2008 3:12 PM, Vipul Ramani wrote:> I m trying to set auto-refresh or auto updates using puppet. like when > i will updated vfstab .For this particular problem, why not use the built-in mount type? http://reductivelabs.com/trac/puppet/wiki/TypeReference#mount I''m not sure I''d want to literally replace a vfstab on a running system, or how I''d execute the necessary mounts/remounts/umounts depending on how the file changed.> Can i configured like . once i will updates the file it will push > updates to all default clients after 1 min ???It won''t push anything by default. Clients that check in (on a 30 minute schedule by default) will apply necessary changes each time they check in. Pushes could be done by puppetrun, or using dsh to log into each client system automatically to force a pull by running puppetd. I don''t know that having the clients check in every 60 seconds for changes will scale well past a fairly small number of systems, especially if your manifests get complicated or large. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Mike Renfro
2008-May-30 12:06 UTC
[Puppet Users] Re: Auto refresh or auto updates - when file is updated !!!
Vipul Ramani wrote:> if i run puppetrun --host solaris2 on puppetmaster i am getting this > error ... and client is running on solaris 2 ~~~ do i need to change > the port ?? > > ---------puppet master server --------------------------- > bash# puppetrun --host solaris2 > Failed to load ruby LDAP library. LDAP functionality will not be > available > Triggering solaris2 > Host solaris2 failed: Could not connect to solaris2 on port 8139 > solaris2 finished with exit code 2 > Failed: solaris2 > > ----------------------------------------------------------------------- > > ----puppet client------------- > solaris2#ps -ef |grep pupp > root 1624 1 1 14:52:56 ? 0:27 ruby /opt/csw/bin/ > puppetd -D > ------------------------------------------ > > any idea ??? why it is failed to push updates 2 solaris2Please keep conversations relevant to others on the list. Though I''ve never used puppetrun myself, I''m guessing you''ve not gone through the setup instructions given in either puppetrun --help or the puppetrun man page (online version at http://linux.die.net/man/8/puppetrun ). It looks like your puppetd hasn''t been run with the --listen flag, and that you''ve possibly not created a proper namespaceauth.conf file. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---