Arnau Bria
2009-Oct-15 13:51 UTC
[Puppet Users] req on a file distributed under recursive dir
Hi all, I''m not sure if next conf is going to work: I''d like to distribute a dir in recurse way, but then add a req on a certain file that is under that reurse dir. Example: file { "/opt/localconf": ensure => directory, owner => "root", group => "root", mode => "700", recurse => true, source => "puppet://ser01.pic.es/gLite/opt/localconf_test", } But then do some notify like: file { "/opt/localconf/gLite3.1/yaim": recurse => true, owner => "root", group => "root", mode => "700", source => "puppet://ser01.pic.es/wn_yaim/opt/localconf/gLite3.1/yaim", notify => Exec["yaim_conf_32"], } Is this conf going to work? source of both files is the same. TIA, Arnau --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Bjørn Dyresen
2009-Oct-15 15:33 UTC
[Puppet Users] Re: req on a file distributed under recursive dir
Best way to really find out, would be to try it out :) On Oct 15, 2009, at 3:51 PM, Arnau Bria wrote:> > Hi all, > > I''m not sure if next conf is going to work: > > I''d like to distribute a dir in recurse way, but then add a req on a > certain file that is under that reurse dir. > > Example: > > file { "/opt/localconf": > ensure => directory, > owner => "root", > group => "root", > mode => "700", > recurse => true, > source => "puppet://ser01.pic.es/ > gLite/opt/localconf_test", > } > > But then do some notify like: > > file { "/opt/localconf/gLite3.1/yaim": > recurse => true, > owner => "root", > group => "root", > mode => "700", > source => "puppet://ser01.pic.es/wn_yaim/opt/ > localconf/gLite3.1/yaim", > notify => Exec["yaim_conf_32"], > } > > Is this conf going to work? > > source of both files is the same. > > TIA, > Arnau > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Arnau Bria
2009-Oct-15 16:15 UTC
[Puppet Users] Re: req on a file distributed under recursive dir
On Thu, 15 Oct 2009 17:33:46 +0200 Bjørn Dyresen wrote:> > Best way to really find out, would be to try it out :)Sure, but I was asking for other''s experience/advices :-) Anyway, thanks for your reply! Arnau --~--~---------~--~----~------------~-------~--~----~ 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
2009-Oct-19 00:17 UTC
[Puppet Users] Re: req on a file distributed under recursive dir
On Oct 15, 2009, at 6:51 AM, Arnau Bria wrote:> > Hi all, > > I''m not sure if next conf is going to work: > > I''d like to distribute a dir in recurse way, but then add a req on a > certain file that is under that reurse dir. > > Example: > > file { "/opt/localconf": > ensure => directory, > owner => "root", > group => "root", > mode => "700", > recurse => true, > source => "puppet://ser01.pic.es/ > gLite/opt/localconf_test", > } > > But then do some notify like: > > file { "/opt/localconf/gLite3.1/yaim": > recurse => true, > owner => "root", > group => "root", > mode => "700", > source => "puppet://ser01.pic.es/wn_yaim/opt/ > localconf/gLite3.1/yaim", > notify => Exec["yaim_conf_32"], > } > > Is this conf going to work? > > source of both files is the same.This doesn''t work, unfortunately - the only choice is to notify on the whole directory. I *really* wanted this to work, but we need to resolve all of the relationships before we can sort the resources, and the files discovered through recursion don''t exist at that stage. -- I have learned to use the word ''impossible'' with the greatest caution. -- Wernher von Braun --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---