-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Feature request: Execution module with function(s) to clear files cached from the salt fileserver #34369
Comments
ZD-702 > requested by Gary through ZD, has not been requested or committed to a customer |
@terminalmage how big is this feature add? |
I think some of this may already be done. I think there may be a runner function that clears the minion cache |
@UtahDave To my knowledge that only clears grains/pillar/mine data. There is a The likely solution for this is a modification of this function that allows one to limit the function to just the fileserver cache. I might also add additional arguments to clean only files with a filename matching a pattern, or of a certain age, so that people can schedule a cache cleanup via cron to purge files older than N days. @meggiebot this shouldn't take more than a day or two (famous last words), just haven't gotten around to it yet. |
Any updates on this issue? |
This is a very much needed feature. |
See #51431 |
#51431 will remove everything in cache dir so it's far from perfect. I don't want to remove my custom modules\states etc. |
I'm working on some archive.extracted state enchantments and cache control is the problem that I run on over and over. I'd really like to have an option to "keep N last releases" for archive.extracted case. I understand that the cache is not really related to archive.extracted but they're interconnected a lot. |
Currently, the minion fileserver cache is never purged. Adding functionality to control the minion fileserver cache would have a couple benefits:
The text was updated successfully, but these errors were encountered: