system-config/modules/pip/manifests/init.pp
Dan Prince 0bdc3b0cf4 Update pip module to support Red Hat distros.
Adds a new pip::params module where we set parameters based on
the operating system.

Updates the pip::init module so that it makes use of distro specific
parameters.

Also, includes a change to pip::init so that a soft link is
created for /usr/bin/pip (pointing to /usr/bin/pip-python). This
is required in order for the Puppet pip provider to work on Red Hat
distributions. Seems like we should push a fix into Puppet for this
as well but having this live here for now seems reasonable.

Change-Id: Ifee6bc42fabcf65ee1241ffac38f3bead7335be1
Reviewed-on: https://review.openstack.org/18904
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-01-17 18:24:16 +00:00

25 lines
445 B
Puppet

# Class: pip
#
class pip {
include pip::params
package { $::pip::params::python_devel_package:
ensure => present,
}
package { $::pip::params::python_pip_package:
ensure => present,
require => Package[$::pip::params::python_devel_package]
}
if ($::operatingsystem == 'Redhat' or $::operatingsystem == 'Fedora') {
file { '/usr/bin/pip':
ensure => 'link',
target => '/usr/bin/pip-python',
}
}
}