This repository has been archived on 2020-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
alerta.autonomic.zone/deploy.d/config.yml
2020-05-07 08:14:37 +02:00

62 lines
1.6 KiB
YAML

---
vars:
alerta_username: "alerta"
domain: "alerta.autonomic.zone"
keycloak_realm: "autonomic"
keycloak_role: "worker-owner"
keycloak_url: "https://id.autonomic.zone"
mail_from: "noreply@autonomic.zone"
mail_to: "kaboom@autonomic.zone"
port: "8080"
rocket_chat_channel: "kaboom"
rocket_chat_icon_emoji: ":rocket:"
smtp_host: "mail.gandi.net"
smtp_port: "587"
smtp_starttls: "True"
smtp_username: "noreply"
alerta_user_gid: "0"
# See https://github.com/alerta/docker-alerta/blob/858fa5f799835e0b62dd98e6859faf201b146e9e/Dockerfile#L78
alerta_user_uid: "1001"
dirs:
- path: /var/lib/alerta/
db:
- type: "mongo"
passwd: "{{ vault.db_passwd }}"
root_passwd: "{{ vault.root_db_passwd }}"
files:
- src: email.tmpl
dest: /var/lib/alerta/email.tmpl
owner: "{{ vars.alerta_user_uid }}"
group: "{{ vars.alerta_user_gid }}"
mode: "664"
templates:
- src: config.json
dest: /var/lib/alerta/config.json
owner: "{{ vars.alerta_user_uid }}"
group: "{{ vars.alerta_user_gid }}"
mode: "664"
- src: alerta.conf
dest: /var/lib/alerta/alerta.conf
owner: "root"
group: "root"
mode: "664"
- src: alertad.conf
dest: /var/lib/alerta/alertad.conf
owner: "root"
group: "root"
mode: "664"
volumes:
- /var/lib/alerta/email.tmpl:/app/email.tmpl
- /var/lib/alerta/alerta.conf:/app/alerta.conf
- /var/lib/alerta/alertad.conf:/app/alertad.conf
- /var/lib/alerta/config.json:/web/config.json
env:
DOKKU_LETSENCRYPT_EMAIL: "helo@autonomic.zone"
SMTP_PASSWORD: "{{ vault.smtp_passwd }}"