IIRC, environment.conf has a option to run a scrip...
# puppet
y
IIRC, environment.conf has a option to run a script to return the environment version. One can generate this script.. or this script can read a generated file