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

Add option to manage imgcache directory #146

Merged
merged 1 commit into from
Sep 3, 2023

Conversation

yakatz
Copy link
Contributor

@yakatz yakatz commented Jan 16, 2022

Pull Request (PR) description

Allow not managing imgcache directory

Add more tests

This Pull Request (PR) fixes the following issues

Fixes #145

@smortex
Copy link
Member

smortex commented Jan 17, 2022

Looks good! Can you please combine your commits in a single one?

From your working directory:

git rebase -i origin/master # Interactively rewrite history

This will bring your editor. Keep the first line unchanged, and replace pick with squash for all subsequent lines. Save and quit, your editor will allow you to combine the commit messages in a single commit message.

Then push your updated branch:

git push -f            # Send the changes (-f is required because we re-wrote history)

andybotting added a commit to NeCTAR-RC/puppet-smokeping that referenced this pull request Feb 10, 2022
In a similar fashion to PR voxpupuli#146, also add a argument to prevent the
management of the data dir.

The scenario I ran into needing this was when using a master/slave
setup. The remote data comes in via Apache with the www-data user
and it requires a setfacl entry as documented at
https://github.com/oetiker/SmokePing/wiki/FAQ#master-slave-setups
or you'll see permission denied errors in the log file.

Ideally this module would be extended to support master/slave better,
but this will help in the meantime.
@kenyon kenyon changed the title Don't manage imgcache dir Add option to manage imgcache directory Sep 3, 2023
@kenyon kenyon added the enhancement New feature or request label Sep 3, 2023
@kenyon kenyon merged commit 322bef3 into voxpupuli:master Sep 3, 2023
4 checks passed
@yakatz yakatz deleted the bug/too_many_files branch September 3, 2023 21:22
trice-ardc added a commit to NeCTAR-RC/puppet-smokeping that referenced this pull request Mar 21, 2024
This should prevent the warning:

> Warning: The directory '/var/cache/smokeping/images' contains 1027 entries, which exceeds the default soft limit 1000 and may cause excessive resource consumption and degraded performance. To remove this warning set a value for `max_files` parameter or consider using an alternate method to manage large directory trees

Also see https://www.puppet.com/docs/puppet/7/types/file.html#file-attribute-max_files

We may be able to revert this in v7.0.0, which introduces an option
to not manage the image cache:

* voxpupuli#145
* voxpupuli#146
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Managing too many files
3 participants