From 74fa2fa98c57672b6ed67243e5e17a5e44108eb1 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 10 Mar 2022 22:31:04 +0100 Subject: improvements and fixes for alerta role --- roles/monitoring/alerta/templates/pod-spec.yml.j2 | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'roles/monitoring/alerta/templates/pod-spec.yml.j2') diff --git a/roles/monitoring/alerta/templates/pod-spec.yml.j2 b/roles/monitoring/alerta/templates/pod-spec.yml.j2 index 6edabae5..c39ec080 100644 --- a/roles/monitoring/alerta/templates/pod-spec.yml.j2 +++ b/roles/monitoring/alerta/templates/pod-spec.yml.j2 @@ -1,13 +1,15 @@ containers: - name: alerta - image: "alerta-web-with-mailer:8.7.0" + image: "alerta-web-with-mailer:{{ alerta_web_version }}" env: - name: "DATABASE_URL" - value: "postgres://alerta:secret@127.0.0.1:5432/alerta" + value: "postgres://alerta:{{ alerta_postgres_password }}@127.0.0.1:5432/alerta" - name: "AUTH_REQUIRED" value: "True" - name: "ADMIN_USERS" value: "admin" + - name: "SECRET_KEY" + value: "{{ alerta_web_secret_key }}" - name: "DEBUG" value: "1" - name: "SUPERVISORD_LOG_LEVEL" @@ -19,10 +21,10 @@ containers: readOnly: true ports: - containerPort: 8080 - hostPort: 8080 + hostPort: {{ alerta_web_port }} - name: postgresql - image: "postgres:14.2" + image: "postgres:{{ alerta_postgres_version }}" args: - postgres - -c @@ -33,20 +35,20 @@ containers: - name: "POSTGRES_USER" value: "alerta" - name: "POSTGRES_PASSWORD" - value: "secret" + value: "{{ alerta_postgres_password }}" volumeMounts: - name: postgres mountPath: /var/lib/postgresql/data - name: redis - image: "redis:6.2.6" + image: "redis:{{ alerta_redis_version }}" args: - redis-server - --bind - 127.0.0.1 - name: mailer - image: "alerta-web-with-mailer:8.7.0" + image: "alerta-web-with-mailer:{{ alerta_web_version }}" command: - alerta-mailer env: -- cgit v1.2.3