-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Attempting to install file only if it is downloaded and/or modified #73
Conversation
Solves issue #72 |
Hi @arifcse019, thanks for the PR, it's indeed always a chicken and egg problem with downloaded resources and installation. Here's a scenario I've encountered a lot, let's say we've downloaded the file but chef run was kill afterwards, then we already have the file, on the next run About the This would cover the What do you think? |
Sounds like a really good idea. I am going to give it a try and report back |
On a second thought, I am not sure if the solution above will prevent chef from installing the package even if the package is already installed. I think repeating the same guard for both downloading and installation is the best way. I have captured the guard string in a separate variable such that we do not have to update it in two places if needed |
Hello @arifcse019, thanks for your work and your thoughts on this issue, I've merged your commits and switch back to remote_file to It's a little more work when changing the Grafana version, but I've found it's the best way to prevent all kind of problems (file re-download, partial file, wrong file, etc). Thanks again for your participation! |
My pleasure and pride to be a contributor. Thank you! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
No description provided.