This commit is contained in:
parent
ab74d696cc
commit
f946d5e9c6
@ -15,23 +15,23 @@
|
|||||||
- "{{ domain }}"
|
- "{{ domain }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Create postgres database
|
- name: Create mongodb database
|
||||||
no_log: true
|
no_log: true
|
||||||
shell: "
|
shell: "
|
||||||
dokku
|
dokku
|
||||||
postgres:create
|
mongodb:create
|
||||||
alerta
|
alerta
|
||||||
--password {{ db_passwd }}
|
--password {{ db_passwd }}
|
||||||
--root-password {{ root_db_passwd }}
|
--root-password {{ root_db_passwd }}
|
||||||
"
|
"
|
||||||
args:
|
args:
|
||||||
creates: /var/lib/dokku/services/postgres/alerta
|
creates: /var/lib/dokku/services/mongodb/alerta
|
||||||
|
|
||||||
- name: Link postgres database to application
|
- name: Link mongodb database to application
|
||||||
dokku_service_link:
|
dokku_service_link:
|
||||||
app: alerta
|
app: alerta
|
||||||
name: alerta
|
name: alerta
|
||||||
service: postgres
|
service: mongodb
|
||||||
|
|
||||||
- name: Create application directories
|
- name: Create application directories
|
||||||
become: true
|
become: true
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
endpoint = http://127.0.0.1:8080/api
|
endpoint = http://localhost:8080/api
|
||||||
key = {{ alerta_cli_api_key }}
|
key = {{ alerta_cli_api_key }}
|
||||||
output = psql
|
output = psql
|
||||||
sslverify = False
|
sslverify = False
|
||||||
timezone = Europe/London
|
timezone = Europe/London
|
||||||
|
|
||||||
[alerta-mailer]
|
[alerta-mailer]
|
||||||
amqp_url = mongodb://127.0.0.1:27017/
|
amqp_url = {{ db_type }}://{{ db_loc }}/
|
||||||
amqp_queue_name = kombu
|
dashboard_url = http://localhost:8080
|
||||||
dashboard_url = http://127.0.0.1:8080
|
|
||||||
debug = True
|
debug = True
|
||||||
email_type = text
|
email_type = text
|
||||||
endpoint = http://127.0.0.1:8080/api
|
endpoint = http://127.0.0.1:8080/api
|
||||||
|
@ -52,12 +52,15 @@ SEVERITY_MAP = {
|
|||||||
DEFAULT_NORMAL_SEVERITY = "normal"
|
DEFAULT_NORMAL_SEVERITY = "normal"
|
||||||
DEFAULT_PREVIOUS_SEVERITY = "indeterminate"
|
DEFAULT_PREVIOUS_SEVERITY = "indeterminate"
|
||||||
|
|
||||||
PLUGINS = ["reject", "blackout", "normalise", "amqp", "mailer"]
|
PLUGINS = [
|
||||||
|
"alerta-mailer",
|
||||||
|
"amqp",
|
||||||
|
"blackout",
|
||||||
|
"normalise",
|
||||||
|
"reject",
|
||||||
|
]
|
||||||
|
|
||||||
AMQP_URL = "mongodb://localhost:27017/kombu"
|
DATABASE_URL = "{{ db_type }}://{{ db_user }}:{{ db_passwd }}@{{ db_loc }}/{{ db_name }}"
|
||||||
AMQP_TOPIC = "notify"
|
|
||||||
|
|
||||||
DATABASE_URL = "postgres://{{ db_user }}:{{ db_passwd }}@{{ db_loc }}/{{ db_name }}"
|
|
||||||
DATABASE_NAME = "{{ db_name }}"
|
DATABASE_NAME = "{{ db_name }}"
|
||||||
|
|
||||||
EMAIL_VERIFICATION = False
|
EMAIL_VERIFICATION = False
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
---
|
---
|
||||||
db_loc: "dokku-postgres-alerta:5432"
|
db_loc: "dokku-mongodb-alerta:27017"
|
||||||
db_name: "alerta"
|
db_name: "alerta"
|
||||||
db_user: "postgres"
|
db_type: "mongodb"
|
||||||
|
db_user: "alerta"
|
||||||
domain: "alerta.autonomic.zone"
|
domain: "alerta.autonomic.zone"
|
||||||
http_port: "8080"
|
http_port: "8080"
|
||||||
keycloak_realm: "autonomic"
|
keycloak_realm: "autonomic"
|
||||||
|
Reference in New Issue
Block a user