diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-03-10 22:31:04 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-03-10 22:31:04 +0100 |
commit | 74fa2fa98c57672b6ed67243e5e17a5e44108eb1 (patch) | |
tree | 3fa09031afd1d6e6789b9d2507079c45167476ce /roles/monitoring/alerta/templates/pod-spec.yml.j2 | |
parent | set ansible forks to 20 (diff) |
improvements and fixes for alerta role
Diffstat (limited to 'roles/monitoring/alerta/templates/pod-spec.yml.j2')
-rw-r--r-- | roles/monitoring/alerta/templates/pod-spec.yml.j2 | 16 |
1 files changed, 9 insertions, 7 deletions
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: |