We configure repositories (Yum and Apt) with package versions based on the version of the Puppet module.
e.g. if the manifest (through Puppetfile) has Puppet module version 3.2 then we want the repo URL to contain the string "3.2" somewhere.
Right now, we have a fact which extracts the module version from the output of `"puppet module list"`, but this works only when the module is installed locally (e.g. in Vagrant, or when running stand-alone agent), but not when using Puppet Master.
Is there a way to include the module version in the manifest automatically, without having to maintain the variable "manually"?
↧