martin059 / virtualization-level-2-vagrant-setup

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

Automatically deploy `Grafana` configuration #43

Closed martin059 closed 5 months ago

martin059 commented 5 months ago

Issue description

Depends on:

Once Grafana's configuration has been exported and uploaded to this repo. Look for a way to expand the Grafana Ansible role to also automatically deploy the configuration while the role is being provisioned

Development task

martin059 commented 5 months ago

Read this comment https://github.com/martin059/virtualization-level-2-vagrant-setup/issues/42#issuecomment-2134102964 to configure the Grafana container through bash and/or Ansible playbook.

martin059 commented 5 months ago

This issue was done in parallel to the ones it depended on, so no further changes are necessary after finishing the other issues. Hence this issue will be closed.

With the current implementation, the ability to load a base Grafana configuration without a password has been removed. If no password is defined in the custom configuration file or the password is incorrect, no automatic configuration will be performed. A future issue will be created to re-add this functionality, allowing a configuration without the private Slack hook if no correct password is given.

Additionally, a bug was detected where the configuration would be incorrectly loaded into the Grafana container, causing it to restart constantly and crash with the error "the database is read-only." This isn't a major issue since a manual workaround can be performed by destroying the container and its volume, then re-raising the container and manually invoking the script to automatically import the configuration. A future issue will also be created to address this bug.