Install pip using get-pip in launch node

packaged pip vs. upstream pip gets the systems very broken. Make launch-node
use get-pip to install pip as per:

http://www.pip-installer.org/en/latest/installing.html

Change-Id: Ice28b47d766c04b42462a7297911dc1a1abe5a77
This commit is contained in:
Monty Taylor 2013-12-18 19:55:12 +00:00
parent c54c76755f
commit bd3886ed14
4 changed files with 11 additions and 9 deletions

View File

@ -16,6 +16,15 @@
# License for the specific language governing permissions and limitations
# under the License.
# Install pip using get-pip
EZ_SETUP_URL=https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
PIP_GET_PIP_URL=https://raw.github.com/pypa/pip/master/contrib/get-pip.py
curl -O $EZ_SETUP_URL
python ez_setup.py
curl -O $PIP_GET_PIP_URL
python get-pip.py
# Install puppet version 2.7.x from puppetlabs.
# The repo and preferences files are also managed by puppet, so be sure
# to keep them in sync with this file.

View File

@ -5,12 +5,12 @@
class openstack_project::params {
case $::osfamily {
'RedHat': {
$packages = ['puppet', 'python-setuptools', 'wget']
$packages = ['puppet', 'wget']
$user_packages = ['byobu', 'emacs-nox']
$update_pkg_list_cmd = ''
}
'Debian': {
$packages = ['puppet', 'python-setuptools', 'wget']
$packages = ['puppet', 'wget']
$user_packages = ['byobu', 'emacs23-nox']
$update_pkg_list_cmd = 'apt-get update >/dev/null 2>&1;'
}

View File

@ -7,9 +7,4 @@ class pip {
ensure => present,
}
package { $::pip::params::python_pip_package:
ensure => present,
require => Package[$::pip::params::python_devel_package]
}
}

View File

@ -6,13 +6,11 @@ class pip::params {
case $::osfamily {
'RedHat': {
$python_devel_package = 'python-devel'
$python_pip_package = 'python-pip'
$python3_devel_package = 'python3-devel'
$python3_pip_package = 'python3-pip'
}
'Debian': {
$python_devel_package = 'python-all-dev'
$python_pip_package = 'python-pip'
$python3_devel_package = 'python3-all-dev'
$python3_pip_package = 'python3-pip'
}