From 3b57b335f99a33af8722c4e43ceab9d507ce2330 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Thu, 9 Apr 2020 20:41:04 +0200 Subject: [PATCH] Add CLI api key and fix localhost URLs --- ansible/templates/alerta.conf | 5 +++-- ansible/vars/alerta_cli_api_key.yml | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 ansible/vars/alerta_cli_api_key.yml diff --git a/ansible/templates/alerta.conf b/ansible/templates/alerta.conf index 2b41fda..dd15901 100644 --- a/ansible/templates/alerta.conf +++ b/ansible/templates/alerta.conf @@ -1,12 +1,13 @@ [DEFAULT] -endpoint = https://{{ domain }}/api +endpoint = http://localhost:8080/api +key = {{ alerta_cli_api_key }} output = psql sslverify = no timezone = Europe/London [alerta-mailer] amqp_url = mongodb://0.0.0.0:27017/ -dashboard_url = http://{{ domain }} +dashboard_url = http://localhost:8080 debug = true email_type = text key = {{ alerta_mailer_api_key }} diff --git a/ansible/vars/alerta_cli_api_key.yml b/ansible/vars/alerta_cli_api_key.yml new file mode 100644 index 0000000..bb74706 --- /dev/null +++ b/ansible/vars/alerta_cli_api_key.yml @@ -0,0 +1,9 @@ +--- +alerta_cli_api_key: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 30623065663233623665666462623566623461333132366630363030353836646538623032366566 + 3236656234633364633133373731646231363261633134630a346135336132393232333031376237 + 38316162363134303764656261613837663766666633386363303039663631643537373731386533 + 3139313262363935370a623839386233363661303463383230366565666434626465363436303063 + 35653331643632313661616138623230656562643863656338396135326564336236613365633336 + 6332313536663936393130353862313230343164306233353462