-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> in every classes I created, I defined a variable (named $version) to
> include a kind of versionning inside them.
> 
> In puppetd sources, around network/client/master.rb:293 , the
> 'setclasses' function log the classes in a 'classfile' (here :
> $statedir/classes.txt). I'd just like to add classes $version numbers
> in that file.
> 
> Anyone know how to access a variable inside a class ?


there is the config_version option
http://docs.reductivelabs.com/references/stable/configuration.html#config-version
which gives you the possibility to give the possibility to generate a
certain version for the current used manifests.

this should be sufficient to get what you like. I don't see why you'd
like to have a per class version...

cheers pete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktgsI8ACgkQbwltcAfKi3/wPACgitgAxlnwAqeRcdJ9OVRn6DpB
UvoAn3Btqpo9JORNUgA1Alt+Eqmf1ALJ
=vO6b
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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