ansible-role-for-splunk
ansible-role-for-splunk copied to clipboard
Task for cleanup of old or not approved apps
Have you thought about a task for cleaning up or removing of old or not approved apps?
My thoughts would be
- Validating
git_appslist and themanifest filefor Splunk installation against correctsplunk_app_deploy_pathand removing everyone that is not a match.
OR
- Validating
git_appslist, themanifest filefor Splunk installation and aAllowed_appslist (if by some reason you need to install something manually or any other way) against correctsplunk_app_deploy_pathand removing everyone that is not a match.
AND what to do with the non matching results:
- Backup/copy non matching results to a folder for 5 or 10 dates backups after that it rotates out and gets deleted.
Example:
/opt/splunk/backup_files
/2021-09-02
/2021-10-15
/2021-10-16
OR
- Just clean delete of non matching results.