Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds releasever option (used by Amazon Linux) to the generated yum.conf #78

Closed
wants to merge 1 commit into from
Closed

Conversation

jbasko
Copy link

@jbasko jbasko commented Jun 4, 2014

As instructed in this thread: https://forums.aws.amazon.com/thread.jspa?messageID=535192 users of Amazon Linux are advised to set a custom option releasever=latest in yum.conf to ensure the latest updates. I did not find a way to specify that with the current yum cookbook version.

Running yum cookbook actually breaks yum dependency resolution on newly created Amazon Linux instances because by default Amazon Linux come with this special option but then running Chef removes that option and then dependency conflicts start to arise.

Note that this value does not have to be the same as that of option distroverpkg (which sets the variable $releasever) - in fact setting distroverpkg=latest breaks things as that then generates some invalid URLs.

As I understand yum plugin developers are allowed to add custom options to yum, but the current implementation of yum.conf doesn't allow neither to specify custom options, nor to specify a custom template to be used in place of main.erb. Therefore I just added it in parallel to other yum.conf options.

Amazon Linux uses releasever option (which is not necessarily identical to distroverpkg).
someara pushed a commit that referenced this pull request Jun 11, 2014
@someara
Copy link

someara commented Jun 11, 2014

merged in a217f36

@someara someara closed this Jun 11, 2014
@jbasko
Copy link
Author

jbasko commented Jun 12, 2014

Thanks @someara

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants