Ask Your Question

Is it possible for you to add proper symlinks in you yum repo?

asked 2013-06-27 05:19:48 -0600

dcodix gravatar image

updated 2013-06-27 09:46:50 -0600

llowder gravatar image

As I commented on the "Puppet Users" google group thread with subject Puppet cloud_provisioner won't work with Scientific Linux, cloud_provisioner won't work with Scientific Linux as its $releasever is not only "major" but "major.minor".

I did my workarround but I think the best solution, if it is possible, would be to add symlinks to your repos.

Is it possible? or, is there any other solution to have it working with Scientific Linux?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-07-01 08:37:49 -0600

dcodix gravatar image

Thanks Greg,

I thought about the solution you describe. It is much more elegant than my workarround but, as far as I know, it will only work perfectly if your Scientific Linux version is the last one and only till they change the minor version number. If you change the default value of "$releasever" to only "major", it will get packages from "ScientificLinux/6" which corresponds to the last version, right now to 6.4, so if you have SL6.3 this won't work as hoped.

I also thought the possibility of using your function and make puppet delete ... (more)

edit flag offensive delete link more


Ah, I didn't take into account the way that SL structures its RPM repository. I would open a bug report on Puppet's issue tracker ( ...(more)

GregLarkin gravatar imageGregLarkin ( 2013-07-01 09:36:23 -0600 )edit

I'll do. Thanks Greg.

dcodix gravatar imagedcodix ( 2013-07-10 02:37:20 -0600 )edit

Just in case someone else is interested. Puppetlabs people added the symlinks so now cloud_provisioner seems to be working normally fine also with ScientificLinux:

dcodix gravatar imagedcodix ( 2013-08-20 03:41:52 -0600 )edit

answered 2013-06-28 12:56:34 -0600

GregLarkin gravatar image

I think the yum variable override is perfectly fine to use with SL6, but I would simplify your new function like so:

function maybe_trim_releasever() {
# Create a variable for you to puppetlabs release version in yum
# At least for Scientific Linux $releasever is not only the major number.
if grep -iq "scientific linux" /etc/redhat-release; then
RELEASEVER=$(rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)|awk -F . '{print $1}')
mkdir -p /etc/yum/vars
echo ${RELEASEVER} > /etc/yum/vars/releasever
}; fi

If you aren't provisioning to SL6, then the releasever file will not be created, and the script will run ... (more)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-06-27 05:19:48 -0600

Seen: 409 times

Last updated: Jul 01 '13