Reset repo for now pending migration
This commit is contained in:
parent
9db9eca2cb
commit
58102971c5
16
.drone.yml
16
.drone.yml
@ -1,16 +0,0 @@
|
||||
---
|
||||
kind: pipeline
|
||||
name: default
|
||||
steps:
|
||||
- name: Deploy Alerta with Dokku
|
||||
image: appleboy/drone-git-push:0.2.0-linux-amd64
|
||||
settings:
|
||||
remote: ssh://dokku@dokku.autonomic.zone:222/alerta
|
||||
ssh_key:
|
||||
from_secret: drone_deploy_key
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
@ -1,2 +0,0 @@
|
||||
# The path to our pass credentials store
|
||||
export PASSWORD_STORE_DIR=$(pwd)/../infrastructure/credentials/password-store
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
||||
.venv
|
14
Dockerfile
14
Dockerfile
@ -1,14 +0,0 @@
|
||||
FROM alerta/alerta-web:7.4.5
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
RUN /venv/bin/pip install git+https://github.com/alerta/alerta-contrib.git#subdirectory=integrations/mailer
|
||||
RUN /venv/bin/pip install git+https://github.com/alerta/alerta-contrib.git#subdirectory=plugins/rocketchat
|
||||
|
||||
COPY . ${WORKDIR}
|
||||
|
||||
COPY sbin/* /sbin/
|
||||
|
||||
ENTRYPOINT ["/sbin/entrypoint.sh"]
|
||||
|
||||
CMD ["supervisord", "-c", "/app/supervisord.conf"]
|
@ -1,5 +1,5 @@
|
||||
# alerta
|
||||
# alerta.autonomic.zone
|
||||
|
||||
[![Build Status](https://drone.autonomic.zone/api/badges/autonomic-cooperative/alerta/status.svg)](https://drone.autonomic.zone/autonomic-cooperative/alerta)
|
||||
[![Build Status](https://drone.autonomic.zone/api/badges/autonomic-cooperative/alerta.autonomic.zone/status.svg)](https://drone.autonomic.zone/autonomic-cooperative/alerta.autonomic.zone)
|
||||
|
||||
> https://alerta.io/
|
||||
> https://alerta.autonomic.zone
|
||||
|
@ -1,61 +0,0 @@
|
||||
---
|
||||
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 }}"
|
@ -1,35 +0,0 @@
|
||||
|
||||
------------------------------------------------------------
|
||||
[{{ alert.status|title }}] {{ alert.environment }}: {{ alert.severity|title }} {{ alert.event }} on {{ alert.service|join(', ') }} {{ alert.resource }}
|
||||
------------------------------------------------------------
|
||||
|
||||
Alert ID: {{ alert.id }}
|
||||
Create Time: {{ alert.create_time }}
|
||||
Environment: {{ alert.environment }}
|
||||
Services: {{ alert.service|join(', ') }}
|
||||
Resource: {{ alert.resource }}
|
||||
Event: {{ alert.event }}
|
||||
Group: {{ alert.group }}
|
||||
Value: {{ alert.value }}
|
||||
Severity: {{ alert.previous_severity|title}} -> {{ alert.severity|title }}
|
||||
Status: {{ alert.status|title }}
|
||||
Text: {{ alert.text }}
|
||||
Duplicate Count: {{ alert.duplicate_count }}
|
||||
Origin: {{ alert.origin }}
|
||||
Tags: {{ alert.tags|join(', ') }}
|
||||
{% for key,value in alert.attributes.items() -%}
|
||||
{{ key|title }}: {{ value }}
|
||||
{% endfor -%}
|
||||
|
||||
{% if alert.raw_data %}
|
||||
Raw Data
|
||||
{{ alert.raw_data }}
|
||||
{% endif %}
|
||||
|
||||
Comrades! To Arms!
|
||||
|
||||
To acknowledge this alert visit this URL:
|
||||
|
||||
{{ dashboard_url }}/#/alert/{{ alert.id }}
|
||||
|
||||
Generated by {{ program }} on {{ hostname }} at {{ now }}
|
@ -1,25 +0,0 @@
|
||||
[DEFAULT]
|
||||
debug = True
|
||||
endpoint = http://localhost:8080/api
|
||||
key = {{ vault.alerta_cli_api_key }}
|
||||
output = json
|
||||
sslverify = False
|
||||
timezone = Europe/London
|
||||
|
||||
[alerta-mailer]
|
||||
amqp_topic = notify
|
||||
amqp_url = {{ dokku.mongodb_type }}://{{ dokku.mongodb_user }}:{{ vault.db_passwd }}@{{ dokku.mongodb_addr }}/{{ dokku.app }}
|
||||
config_file = /app/alerta.conf
|
||||
dashboard_url = https://{{ config.vars.domain }}
|
||||
debug = True
|
||||
email_type = text
|
||||
endpoint = http://localhost:8080/api
|
||||
key = {{ vault.alerta_mailer_api_key }}
|
||||
mail_from = {{ config.vars.mail_from }}
|
||||
mail_template = /app/email.tmpl
|
||||
mail_to = {{ config.vars.mail_to }}
|
||||
skip_mta = False
|
||||
smtp_host = {{ config.vars.smtp_host }}
|
||||
smtp_password = {{ vault.smtp_passwd }}
|
||||
smtp_port = {{ config.vars.smtp_port }}
|
||||
smtp_starttls = {{ config.vars.smtp_starttls }}
|
@ -1,79 +0,0 @@
|
||||
SITE_LOGO_URL = "https://www.coops.tech/images/coops/autonomic"
|
||||
|
||||
DEBUG = True
|
||||
|
||||
SECRET = "{{ vault.alerta_secret_key }}"
|
||||
|
||||
DASHBOARD_URL = "https://{{ config.vars.domain }}"
|
||||
BASE_URL = "/api"
|
||||
USE_PROXYFIX = True
|
||||
|
||||
AUTH_REQUIRED = True
|
||||
AUTH_PROVIDER = "keycloak"
|
||||
|
||||
ADMIN_USERS = [
|
||||
"calix",
|
||||
"decentral1se",
|
||||
"gunnar",
|
||||
"kawaiipunk",
|
||||
"naomi",
|
||||
"roxie",
|
||||
"takkaria"
|
||||
]
|
||||
USER_DEFAULT_SCOPES = ["admin"]
|
||||
|
||||
SIGNUP_ENABLED = False
|
||||
|
||||
KEYCLOAK_URL = "{{ config.vars.keycloak_url }}"
|
||||
KEYCLOAK_REALM = "{{ config.vars.keycloak_realm }}"
|
||||
ALLOWED_KEYCLOAK_ROLES = ["{{ config.vars.keycloak_role }}"]
|
||||
OAUTH2_CLIENT_ID = "{{ vault.oauth_client_id }}"
|
||||
OAUTH2_CLIENT_SECRET = "{{ vault.oauth_client_secret }}"
|
||||
|
||||
SEVERITY_MAP = {
|
||||
"fatal": 0,
|
||||
"critical": 1,
|
||||
"major": 2,
|
||||
"minor": 3,
|
||||
"warning": 4,
|
||||
"indeterminate": 5,
|
||||
"cleared": 5,
|
||||
"normal": 5,
|
||||
"ok": 5,
|
||||
"informational": 6,
|
||||
"debug": 7,
|
||||
"trace": 8,
|
||||
"unknown": 9
|
||||
}
|
||||
|
||||
DEFAULT_NORMAL_SEVERITY = "normal"
|
||||
DEFAULT_PREVIOUS_SEVERITY = "indeterminate"
|
||||
|
||||
PLUGINS = [
|
||||
"alerta-mailer",
|
||||
"amqp",
|
||||
"blackout",
|
||||
"normalise",
|
||||
"rocketchat",
|
||||
]
|
||||
|
||||
AMQP_URL = "{{ dokku.mongodb_type }}://{{ dokku.mongodb_user }}:{{ vault.db_passwd }}@{{ dokku.mongodb_addr }}/{{ dokku.app }}"
|
||||
AMQP_TOPIC = "notify"
|
||||
|
||||
ROCKETCHAT_WEBHOOK_URL = "{{ vault.rocket_chat_webhook_url }}"
|
||||
ROCKETCHAT_CHANNEL = "{{ config.vars.rocket_chat_channel }}"
|
||||
ALERTA_USERNAME = "{{ config.vars.alerta_username }}"
|
||||
ICON_EMOJI = "{{ config.vars.rocket_chat_icon_emoji }}"
|
||||
|
||||
DATABASE_URL = "{{ dokku.mongodb_type }}://{{ dokku.mongodb_user }}:{{ vault.db_passwd }}@{{ dokku.mongodb_addr }}/{{ dokku.app }}"
|
||||
DATABASE_NAME = "{{ dokku.app }}"
|
||||
|
||||
EMAIL_VERIFICATION = False
|
||||
MAIL_FROM = "{{ config.vars.mail_from }}"
|
||||
SMTP_HOST = "{{ config.vars.smtp_host }}"
|
||||
SMTP_PASSWORD = "{{ vault.smtp_passwd }}"
|
||||
SMTP_PORT = "{{ config.vars.smtp_port }}"
|
||||
SMTP_STARTTLS = True
|
||||
SMTP_USERNAME = "{{ config.vars.smtp_username }}"
|
||||
|
||||
CORS_ORIGINS = ["*"]
|
@ -1 +0,0 @@
|
||||
{ "endpoint": "/api" }
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
alerta_admin_key: !vault |-
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
34313632666130383832633066396334313136393838313534326264346133336562333633323631
|
||||
6566343333353165633537643331616364366566346533640a373965393433393735323237653762
|
||||
61373835366162316630646136323665623332373966393061643237386661343463376137623539
|
||||
6564623030336638340a316533613863303132366231393434376535383963653165313065653838
|
||||
34323239326438616436363864323837366666393564343765643735363233636234343165303432
|
||||
3964353761646163633162353761613763323139393664346565
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
alerta_admin_passwd: !vault |-
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
61386635613234316466653038313332633565663932353863666263643364363831343633616461
|
||||
6238343035613264336666333838333864313064363666340a663839366631396536633966363264
|
||||
35306264333563656633313032343937386435666631623738626632323837326262303136343163
|
||||
6334633033373830620a626663393737653433633635643662663432333237656632663130626635
|
||||
63643039333937353039653439616638613966363362333439613564643333616564373464633365
|
||||
3866373639306361323466323537613236316163656636376239
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
alerta_cli_api_key: !vault |-
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
33653264303231306632383136363466643237643130633937613862666662636265623931356133
|
||||
3966643536623562383737623935366264636339383730650a366563363730653865643839663032
|
||||
65333766316637353737636162396666306332616338646233643134356633313033323263616231
|
||||
3536366165626336300a336266353539326631376362313263653636376361366463343766636632
|
||||
61373235643634346636343466393365633562383433323830373032323633633535333238646435
|
||||
3937366335343037383031353130653937333034326332653162
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
alerta_mailer_api_key: !vault |-
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
62363530353231306463613063633465306633396630333262646461663563383038366565366361
|
||||
3237386339393561646261333238303064663139643332390a303363613965323138333931613136
|
||||
64306337633064313938366264316636663565616533376330393732363364333061316337386434
|
||||
3636666430393436610a656263376133363939386362656439396563383861643638313763383065
|
||||
39633366323336383430313032646131313535346261613833636539383832313737613530626331
|
||||
3038646333373063363761666337373636346237353365623339
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
alerta_secret_key: !vault |-
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
63393463393937636330343330663164353035653235656362633435316337313034373535356466
|
||||
3734386165306530363336353531326532623266386365620a633831323537656164366261613438
|
||||
33303932316233353439646233616566353836376265613835333564326432643439336562376237
|
||||
3563336163323138390a633261633661303361353935623637373635326134356437623261343334
|
||||
32623861376666306637316466613365656266623364623661383032313461633434343332346636
|
||||
6236383965323331313436646463346132626437653361303831
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
db_passwd: !vault |-
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
62323761346564613537633764396461313935646436633865373463323065396633316666303433
|
||||
6435303135663230663862346230613030353838643563350a353739656135346362333030333331
|
||||
65666361363638383964323162656232376539343636306235623863333839343932306461373636
|
||||
3666623436623730630a653063306138316661333565306433633231346234363764303662386165
|
||||
62636638373539656562653838313565393332633765653561623834653563633339346366636461
|
||||
3032363032646631346161653932623337343735643138303137
|
@ -1,8 +0,0 @@
|
||||
---
|
||||
oauth_client_id: !vault |-
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
61373639333566663566666465376265346266363461353061353866333562636432323731626164
|
||||
3966356130323836376264633538333233663463386336650a666561336234353964306339623739
|
||||
63326431356561323730346463393336373431383839333764353233333462393338626665383165
|
||||
3262666232393361320a646230306666373963633036663261643063366337356365366163636238
|
||||
34346235666536643761356635383236336365643839633434333235323930303162
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
oauth_client_secret: !vault |-
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
33613831323161653934373132316538643564623666346133626165346438356430613061333332
|
||||
3661643836343966663739306665663231653833306630330a346565313638626164373038306362
|
||||
62373339336662333434343762383062623235346134333531373833346466343338323563353831
|
||||
6638303763663333370a653065356266646638313634373431306130363838353738666633393666
|
||||
30383933353334313932313637386433373738393765306162666461303663663563373334316236
|
||||
6264633331353565643139616436363737633162343037623632
|
@ -1,12 +0,0 @@
|
||||
---
|
||||
rocket_chat_webhook_url: !vault |-
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
36326239336466373635303536363064666165386136393630633435666662313737326561376661
|
||||
6666623437383265386137396430326135623138643935340a386461633463616330343630373333
|
||||
63633438303032383331613932323235623331326539353561623632663936356562393136303765
|
||||
3037613739316630320a613163613863383764613864326664613263373634663738333432326433
|
||||
33326232303933313264666537656634313763316430633937396633326133653866353934346463
|
||||
65343161356565326264663563313462616136383663386461346135383034353961653362303735
|
||||
33666438626338306161376238343365386566326138666639623330316566373561633139313130
|
||||
32636166363763636532346663383139383765316533343162353630356264353966636133303434
|
||||
30643838346530356534656430363862383364396365353435396232353931653862
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
root_db_passwd: !vault |-
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
33343661333761643934323666663537313862626465613763373734613763346663303638663230
|
||||
6333343962353439653534646266383039343034646130350a396435636638333936663465623263
|
||||
30306266303337366564663333643764386334303733316436363137643465306135633661316466
|
||||
3634393864613439650a373965393166323531333338376436366135343736336366343364383834
|
||||
66333839343337633666346134396264306334616235363239356130653136336365373763366630
|
||||
6366363230663864666266623838383035366462636565663464
|
@ -1,8 +0,0 @@
|
||||
---
|
||||
smtp_passwd: !vault |-
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
38356466313262356537666361396462376663393733393433636161613466356431396665386165
|
||||
3139303436666663356332663766343931323031623161610a373364356163636335326666653030
|
||||
35373366663962363562616631316639376166316438656237386363623461376562643334613262
|
||||
6638613730346139370a303637653665653036316430393239633435613664326362663033636530
|
||||
61306434636234343333626161303866623461643233366434356635373463313432
|
@ -1,23 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
run_alerta_mailer() {
|
||||
set -eu
|
||||
|
||||
nohup alerta-mailer > /app/alerta-mailer.log 2>&1 &
|
||||
|
||||
echo "-----> alerta-mailer is running..."
|
||||
}
|
||||
|
||||
# Main entrypoint
|
||||
main() {
|
||||
set -eu
|
||||
|
||||
run_alerta_mailer
|
||||
}
|
||||
|
||||
main
|
||||
|
||||
|
||||
/usr/local/bin/docker-entrypoint.sh "$@"
|
Reference in New Issue
Block a user