puppet-python icon indicating copy to clipboard operation
puppet-python copied to clipboard

Make it possible to install different version of python on a single node

Open bastianb opened this issue 8 years ago • 1 comments
trafficstars

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

bastianb avatar Aug 31 '17 10:08 bastianb

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.

nward avatar Apr 21 '19 03:04 nward