When trying to add packages to a CentOS 6 system I am getting chronic errors of the form:
Error: Could not get latest version: Execution of '/usr/local/bin/python /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py' returned 1: <type 'exceptions.AttributeError'>
Error: /Stage[main]/Jenkins_packages::Centos/Package[subversion]/ensure: change from 1.6.11-10.el6_5 to latest failed: Could not get latest version: Execution of '/usr/local/bin/python /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py' returned 1: <type 'exceptions.AttributeError'>
whether manually running "puppet agent --test" or letting cron do it for me.
This seems to be because the default root path in CentOS includes /usr/local/bin before /usr/bin, and thus I am getting a user-needed other python version that is a mismatch with the python version that puppet seems to want to play with.
When I run:
"puppet agent --test --path /sbin:/bin:/usr/sbin:/usr/bin:/root/bin"
things seem to work without complaint.
I tried to set that path in /etc/puppet/puppet.conf, but it doesn't seem to work. Should that work?