puppet-python
puppet-python copied to clipboard
Make it possible to install different version of python on a single node
Hello,
At the moment, it is impossible to install multiple python versions with the same python class definition, I tried as suggest on the doc 27/34/35/36 but it fails. I also tried with spaces, no success.
It would be really nice to be able to do that.
I guess it would need to accept a list of version like
class { 'python':
version = > ['27', '34', '35']
}
and then loop over it for the package installation and propagate that list for the pip/dev/venv/gunicorn/... packages as well
The above approach is OK - however - I think it would be better to move the version-specific code in to a new define which can be called however many times.
In this way, we can call it from several parts of a manifest, without needing to know all the required versions in one place.