Hi, I was wondering what would be the best way to have a service restart when i add a File to a remote node. I can have the service subscribe to the file, but this gets ugly soon when i add more and more files. Or, right under the File statement i can have an Exec to do the job, but i don''t like that too much either. To clarify, it''s a func module (file whatever.py) which requires service funcd to restart. Any thoughts? Sebastian --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi> I was wondering what would be the best way to have a service restart > when i add a File to a remote node. I can have the service subscribe > to the file, but this gets ugly soon when i add more and more files. > Or, right under the File statement i can have an Exec to do the job, > but i don''t like that too much either. To clarify, it''s a func module > (file whatever.py) which requires service funcd to restart. > > Any thoughts?use a notify in the file deployement? no need to use "ugly execs". greets pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Sebastian Vieira wrote:> I was wondering what would be the best way to have a service restart > when i add a File to a remote node. I can have the service subscribe > to the file, but this gets ugly soon when i add more and more files.As mentioned before, notify is the way to go. And if there''s a lot of repeated items in your file statements, you may want to convert them into a definition. http://reductivelabs.com/trac/puppet/wiki/Recipes/Apt_Repositories has examples of both. -- 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 -~----------~----~----~----~------~----~------~--~---
Sebastian Vieira
2008-Sep-15 17:59 UTC
[Puppet Users] Re: restart service without subscribe
On Mon, Sep 15, 2008 at 3:47 PM, Mike Renfro <renfro@tntech.edu> wrote:> As mentioned before, notify is the way to go. And if there''s a lot of > repeated items in your file statements, you may want to convert them > into a definition. > http://reductivelabs.com/trac/puppet/wiki/Recipes/Apt_Repositories has > examples of both.Great! Thanks both. I''ll go with the single Notify for now and see how many things we add. regards, Sebastian --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---