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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---