Fix pip installation failures for Consul#132
Conversation
Remove use of easy_install which is now deprecated and not anymore installed per default on recent systems
laurentganne
left a comment
There was a problem hiding this comment.
Looks good!
The same change may be needed in the playbook installing Yorc at org/ystia/ansible/linux/ansible/playbooks/create.yml
Ho yes I see. This seems to be an overkill but we may finally have to consider a component to install pip... and some dependencies. |
Yes in bootstrap, and here in the forge as well at org/ystia/ansible/linux/ansible/playbooks/create.yml. and also these ones that I'm not using personally: |
Ok I will limit to components involved in Yorc bootstrap for now. |
|
@laurentganne changed Ansible component too. |
Fix Consul installation issue
Remove use of easy_install which is now deprecated
and not anymore installed per default on recent systems
Pull Request description
Description of the change
Python
easy_installis deprecated in favor ofpipand is not delivered by default anymore on most of distributions. Unfortunately we usedeasy_installto installpipitself. This change installpipusing distributions package managersWhat I did
Stop using
easy_installat all (do not even try to install it). Determine if we are running Python 2 or 3 and install the corresponding package.How to verify it
On GCP you can test to deploy a consul server with different OS
Note that Ubuntu 20.04 is not supported with Ansible 2.7.9 (opened ystia/yorc#648 to track it)
Description for the changelog
Applicable Issues
Fixes #131