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