The facts :
----------------
In every classes I create, I define a '$version' variable to keep
track of changes. For example :

   class dummy {
      $version = "1.0.2"

      file {
           [...]
      }
   }

My need :
---------------
I have a lot of clients (> 200), and I modify a class on the
puppetmaster, I would like to know in real time which of them loaded
the new class (in the example here : v1.0.2 of class dummy).
My idea is to use the classfile (defaults classes.txt) by adding the
$version value beside each entry.

The actual code that write in statefile, in network/client/master.rb,
is self explanatory :

self.setclasses(objects.classes)
...
def setclasses(ary)
    ...
    f.puts ary.join("\n")
    ...

My problem :
-------------------
Any idea how I could access to my $version variable from my 'ary'
class list ?




-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to puppet-...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to