Add support for Suse family

Change-Id: I92ac35151364c2390eddf2a8c71985049d3814c3
This commit is contained in:
Dirk Mueller 2017-02-24 14:04:28 +01:00
parent adf639e859
commit 4b3f7168ae

View File

@ -12,6 +12,12 @@ class pip::params {
$python3_pip_package = 'python3-pip'
$get_pip_path = '/bin/pip'
}
'Suse': {
$python_devel_package = 'python-devel'
$python3_devel_package = 'python3-devel'
$python3_pip_package = 'python3-pip'
$get_pip_path = '/usr/bin/pip'
}
'Debian': {
$python_devel_package = 'python-all-dev'
$python3_devel_package = 'python3-all-dev'
@ -19,7 +25,7 @@ class pip::params {
$get_pip_path = '/usr/local/bin/pip'
}
default: {
fail("Unsupported osfamily: ${::osfamily} The 'pip' module only supports osfamily Debian or RedHat.")
fail("Unsupported osfamily: ${::osfamily} The 'pip' module only supports osfamily Debian, RedHat or SUSE.")
}
}
}