martin059 / virtualization-level-2-vagrant-setup

TFG Project's Second & Third Virtualization Levels
Apache License 2.0
0 stars 0 forks source link

Add a default Grafana auto-config #55

Closed martin059 closed 5 months ago

martin059 commented 5 months ago

Issue description

As originally mentioned in this comment: https://github.com/martin059/virtualization-level-2-vagrant-setup/issues/43#issuecomment-2136224552.

The Ansible playbook task that provisions the Grafana configuration will fail if a correct password is not given to decrypt the grafana.db file which contains the private Slack web-hook.

As it currently is, this is not a major issue since this is the last task of the playbook and, when it fails, the only section that is left undone is the Grafana configuration. However, if the playbook keeps growing and the last task changes, this would produce more inconsistencies that could be harder to manage.

To prevent this situation, and to add a use case, a new base Grafana configuration can be added. This base configuration will not be encrypted and would be used as default if the password given by the user is wrong or if it is simply missing.

Also it would be useful to add the option to provision Grafana without a configuration loaded.

Development task