This script will configure a new VM (RHEL or Fedora) to be used as a RHV LogCollector Analyzer VM.
It is suggested to run this on a system/VM that is dedicated to this purpose, or one that does not use postgresql DB, to make sure no data is lost for other purposes in the DB.
The script will
- automatically add a repo to RHEL system, or use existing repos in Fedora
- install any missing pacakges required for analyzer tool
- clone the git repo for the analyzer tool
- make sure postgres is initialized and running
- if a logcollector is in /tmp on the system, run the analyzer tool against it