How to change Default Python for Salt in CentOS 7?

1.3k Views Asked by At

I am trying to setup a salt-master/salt-cloud on Centos 7. The issue that I am having is that I need Python 2.7.13 to use salt-cloud to clone vm in vmware vcenter (uses pyvmomi). CentOS comes with Python 2.7.5 which salt has a known issue with (SSL doesn't work). I have tried to find a configuration file on the machine to change which python version it should use with no luck.

I see two possible fixes here,

somehow overwrite the python 2.7.5 with 2.7.13 so that it is the only python available.

OR If possible change the python path salt uses.

Any Ideas on how to do either of these would be appreciated? (Or another solution that I haven't mentioned above?)

1

There are 1 best solutions below

0
On

The salt packages are built using the system python and system site-packages directory. If something doesn't work right, file a bug with salt. You should avoid overwriting the stock python, as that will result in a broken system in many ways.