
The install scripts now look for CentOS in release files. Also some instances of facter's operatingsystem are switched to osfamily and capitalization of RedHat is normalized to match what facter uses. Change-Id: I3bbca5481d0d5e6de9e62bfd6e2b0a85264ed6ed Reviewed-on: https://review.openstack.org/27398 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Tested-by: Jenkins
20 lines
523 B
Puppet
20 lines
523 B
Puppet
# Class: pip::params
|
|
#
|
|
# This class holds parameters that need to be
|
|
# accessed by other classes.
|
|
class pip::params {
|
|
case $::osfamily {
|
|
'RedHat': {
|
|
$python_devel_package = 'python-devel'
|
|
$python_pip_package = 'python-pip'
|
|
}
|
|
'Debian', 'Ubuntu': {
|
|
$python_devel_package = 'python-all-dev'
|
|
$python_pip_package = 'python-pip'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} The 'pip' module only supports osfamily Fedora, Redhat, Debian, or Ubuntu.")
|
|
}
|
|
}
|
|
}
|