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

Move the URL releases to their own directory under /opt to create the… #626

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SaschaDoering
Copy link

Move the URL releases to their own directory under /opt to create the possibility for Puppet to remove old releases that are no longer used.

Pull Request (PR) description

In order to achieve that Puppet can clean up the directory in which Prometheus and the exporters are located, I have created a subdirectory under /opt. This allows Puppet to purge the directory which would lead to unwanted behavior with /opt.

However, this would reinstall all exporters once, which would require one-time manual clean-up. Then you can have that automatically.

So that the change is minimally invasive, I have the whole thing activated via a variable that is deactivated by default.

Please let me know if anything is missing or if my approach does not fit.

This Pull Request (PR) fixes the following issues

Fixes #625

@bastelfreak bastelfreak added the enhancement New feature or request label Jun 19, 2022
@bastelfreak
Copy link
Member

Hi @SaschaDoering , thanks for the PR. Can you please add a unit test for this? Also an acceptance test would be helpful the verifies that the cleanup process is working.

@SaschaDoering SaschaDoering force-pushed the clean_old_url_releases branch 3 times, most recently from a488036 to 7095b41 Compare December 30, 2022 15:26
Move the URL releases to their own directory under /opt to create the
possibility for Puppet to remove old releases that are no longer used.
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.

Old URL releases are not removed
2 participants