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

yum makecache in a recipe #171

Closed
ghost opened this issue Mar 14, 2017 · 4 comments
Closed

yum makecache in a recipe #171

ghost opened this issue Mar 14, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Mar 14, 2017

Scenario:

The apt Cookbook provides a mechanism to do an apt-get update as part of the chef run in its default recipe. I am wondering if the yum Cookbook should provide a similar construct for parity which seems like it would be yum makecache

@ghost ghost changed the title yum update in a recipe yum makecache in a recipe Mar 14, 2017
@cheeseplus
Copy link

What is the need for updating the cache in this scenario? Yum and certain other package managers update the cache as needed. Apt doesn't do this hence why we have that functionality for it.

@ghost
Copy link
Author

ghost commented Mar 15, 2017

I guess my thinking was that whenever I spin up a server, before I bootstrap it to chef, I am always performing a yum makecache out of fear that the cache may be expired on the first boot of the server. I agree that yum maintains its own cache and expiring rules.

@ghost
Copy link
Author

ghost commented Mar 23, 2017

just curious if you received my response ...

@cheeseplus
Copy link

If you can provide a scenario it would be needed/required we'd be interested. But as stated earlier there isn't any reason we need to run this as yum automatically does so when installing packages. As such we don't have any intention of adding it at this time.

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

No branches or pull requests

2 participants