Add automated .env file creation for monitoring stack via Ansible
- Add Jinja2 template for monitoring stack .env file - Add Ansible tasks to generate passwords and create .env automatically - Update vault example with monitoring credentials - Remove manual deploy.sh script (using Ansible instead) - Add app-internal network creation task
This commit is contained in:
20
deployment/ansible/templates/monitoring.env.j2
Normal file
20
deployment/ansible/templates/monitoring.env.j2
Normal file
@@ -0,0 +1,20 @@
|
||||
# Monitoring Stack Environment Configuration
|
||||
# Generated by Ansible - DO NOT EDIT MANUALLY
|
||||
|
||||
# Domain Configuration
|
||||
DOMAIN={{ app_domain | default('michaelschiemer.de') }}
|
||||
|
||||
# Grafana Configuration
|
||||
GRAFANA_ADMIN_USER={{ grafana_admin_user | default('admin') }}
|
||||
GRAFANA_ADMIN_PASSWORD={{ grafana_admin_password }}
|
||||
|
||||
# Grafana Plugins (comma-separated)
|
||||
# Common useful plugins:
|
||||
# - grafana-clock-panel
|
||||
# - grafana-piechart-panel
|
||||
# - grafana-worldmap-panel
|
||||
GRAFANA_PLUGINS={{ grafana_plugins | default('') }}
|
||||
|
||||
# Prometheus BasicAuth
|
||||
# Format: username:hashed_password
|
||||
PROMETHEUS_AUTH={{ prometheus_auth }}
|
||||
Reference in New Issue
Block a user