20 lines
496 B
Puppet
20 lines
496 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': {
|
|
$python_devel_package = 'python-all-dev'
|
|
$python_pip_package = 'python-pip'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} The 'pip' module only supports osfamily Debian or RedHat.")
|
|
}
|
|
}
|
|
}
|