yumrepo difference in behaviour between CentOS 6 and 7

42 views
Skip to first unread message

Jonathan Gazeley

unread,
Sep 12, 2016, 11:48:15 AM9/12/16
to puppet...@googlegroups.com
Hi folks,

I'm working on a manifest that manages the stock yum.repos.d definitions
from CentOS and can override some settings. This is tested and working
on CentOS 7 but produces different behaviour on CentOS 6.

This is the repo definition:

yumrepo { 'CentOS-Base':
name => 'base',
target => '/etc/yum.repos.d/CentOS-Base.repo',
baseurl => $baseurl,
mirrorlist => $mirrorlist,
descr => 'CentOS-$releasever - Base',
enabled => $enabled,
gpgcheck => '1',
gpgkey =>
"file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-${::repo_centos::releasever}",
}

On CentOS 7 this produces a file "CentOS-Base.repo". On CentOS 6 this
produces a file "base.repo". Both platforms are running Puppet 3.8.7. Is
this a bug?

Full code here if anyone is interested:
https://github.com/uobnetops/repo_centos/blob/repo_naming/manifests/base.pp

Thanks,
Jonathan

--
Jonathan Gazeley
Senior Systems Administrator
IT Services
University of Bristol

jcbollinger

unread,
Sep 13, 2016, 9:21:39 AM9/13/16
to Puppet Users


On Monday, September 12, 2016 at 10:48:15 AM UTC-5, Jonathan Gazeley wrote:
Hi folks,

I'm working on a manifest that manages the stock yum.repos.d definitions
from CentOS and can override some settings. This is tested and working
on CentOS 7 but produces different behaviour on CentOS 6.


This looks like PUP-2782.


John

Erez Zarum

unread,
Sep 15, 2016, 10:04:54 AM9/15/16
to Puppet Users
It's a known bug, the best option i have come with is to create a module to manage the base repositories using augeas instead of yumrepo.
Reply all
Reply to author
Forward
0 new messages