Just another quick note. Don't know if you were considering supporting any newer versions of CentOS because honestly it works fine on CentOS 6.6, but this line:
$misc_repo_operatingsystemrelease = $operatingsystemrelease,
just doesn't quite do it for CentOS 7.1 because of the way they changed the /etc/centos-release file.
A quick hack that worked for me was to do this:
$misc_repo_operatingsystemrelease = $operatingsystemrelease ? {
'6.6' => '6.6',
default => '7',
},
Probably not the best way to handle it but it works.
Just another quick note. Don't know if you were considering supporting any newer versions of CentOS because honestly it works fine on CentOS 6.6, but this line:
just doesn't quite do it for CentOS 7.1 because of the way they changed the /etc/centos-release file.
A quick hack that worked for me was to do this:
Probably not the best way to handle it but it works.