puppet-python
puppet-python copied to clipboard
Install from softwarecollections.org on centos7.1 fails with 1.12.0 but is ok on 1.11.0
Hi,
I followed this procedure to install python33 : "To use this module with Linux distributions in the Red Hat family and python distributions from softwarecollections.org, set python::provider to 'rhscl' and python::version to the name of the collection you want to"
So I have this in hiera: python::version: "python33" python::provider: "rhscl"
With the 1.11.0 version of the module, it works perfectly, and I can get python installed.
But with the 1.12.0, I get this error: Error: Execution of '/bin/yum -d 0 -e 0 -y list pythonpython33' returned 1: Error: No matching Packages to list
Thanks
I'm seeing this issue as well.
It looks like it was caused by 301b3cb which says it was supposed to fix #287. It is prefixing the python package name with python if $::python::version is not equal to system or pypy.
On CenOS 7, I'm expecting to set $::python::version to python33 or rh-python34.
Same issue here with RHEL 6.6.
As a test I also tried to set $python::version to '27' contrary to what it says in the README, but then the python does not get prepended so that the module attempts to fetch an RPM called rhscl-27-epel-6-x86_64 instead of rhscl-python27-epel-6-x86_64, and of course that results in an error 404. So it seems we can't win 😛 As it turns out I was just testing something locally so I don't need 1.12.0, and indeed this works fine with 1.11.0.
from issue 353:
have this issue, what if we change the source in install.pp?
rhscl: {
rhscl is RedHat SCLs from softwarecollections.org
if $::python::rhscl_use_public_repository { $scl_package = "rhscl-${::python::version}-epel-${::operatingsystemmajrelease}-${::architecture}" package { $scl_package: source => "https://www.softwarecollections.org/en/scls/rhscl/${::python::version}/epel-${::operatingsystemmajrelease}-${::architecture}/download/${scl_package}.noarch.rpm", provider => 'rpm', tag => 'python-scl-repo', } }
the above source returns 404 if copied and pasted into a browser. but the following does not:
https://www.softwarecollections.org/repos/rhscl/rh-python34/epel-7-x86_64/noarch/rhscl-rh-python34-epel-7-x86_64-1-2.noarch.rpm