Hi,

We want to use files to set variables in some recipes in puppet, which
works
ok. However I have one problem. The first step of the recipe is to get
an
updated version of a "control file", which has some info to manage
data. Even
though the file has new data, the recipe reads the file contents only
when it
first runs and ignores any changes to the file later. This also
prevents the recipe from running if the file doesn't exist yet (but
would when the file gets downloaded).

So, this is what happens. There is a class which is assigned to the
puppet
master node. The class has an exec resource "download" which downloads
the latest
version of the file (from SVN) and a definition which is subscribed to
the
Exec. The definition uses the file function to assign the contents of
the file to
a variable. When the class gets executed, the file functions in the
definition
seems to assign the file contents to the variable before the Exec
"download" in
the class, so the first time it runs it has the old data still.

Any tips on how I can handle this?

Thanks,
Andrew
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to