Skip to content

Commit eca3089

Browse files
nel0xbensofficialMtze
authored
Add deployment for Hermes (#42)
* Add deployment for Hermes * Add Hermes to hosts * Update hermes config * Use new hermes-prod for staging --------- Co-authored-by: Benjamin Schmitz <benjamin.schmitz@tum.de> Co-authored-by: Matthias Linhuber <matthias.linhuber@tum.de>
1 parent 993ea75 commit eca3089

4 files changed

Lines changed: 26 additions & 0 deletions

File tree

group_vars/artemis_staging1.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ nebula:
4040

4141
tum_live_base_url: "https://tum.live/api/v2"
4242

43+
push_notification_relay: "https://hermes-prod.artemis.cit.tum.de"
44+
4345
##############################################################################
4446
# Proxy Configuration
4547
##############################################################################

group_vars/artemis_staging2.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ nebula:
4040

4141
tum_live_base_url: "https://tum.live/api/v2"
4242

43+
push_notification_relay: "https://hermes-prod.artemis.cit.tum.de"
44+
4345
##############################################################################
4446
# Proxy Configuration
4547
##############################################################################
@@ -76,6 +78,8 @@ redis:
7678
username: artemis
7779
password: "{{ lookup('hashi_vault', 'kv/data/artemis/' + var_vault_group).get('redis_password') }}"
7880

81+
artemis_redis_client_name: "artemis-{{ node_id }}"
82+
7983
##############################################################################
8084
# Sentry Env-specific Configuration
8185
##############################################################################

hosts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ artemistest9
126126
[artemis_infrastructure]
127127
jenkins-test.artemis.cit.tum.de
128128

129+
[hermes]
130+
hermes-prod.artemis.cit.tum.de var_hermes_environment=production hermes_apns_prod_environment=true
131+
hermes-staging.artemis.cit.tum.de var_hermes_environment=test hermes_apns_prod_environment=false
132+
129133
###############################
130134
# Artemis Staging LocalCI
131135
###############################

playbooks/hermes/hermes.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
- name: Setup
3+
hosts: hermes
4+
5+
roles:
6+
- role: ls1intum.artemis.hermes
7+
vars:
8+
setup_system: true
9+
hermes_version: latest
10+
hermes_apns_certificate_path: artemis-ios-apns-prod.p12
11+
hermes_apns_certificate_password: "{{ lookup('hashi_vault', 'kv/data/artemis/{0}/hermes'.format(var_hermes_environment)).get('apns_certificate_password') }}"
12+
hermes_apns_certificate_content: "{{ lookup('hashi_vault', 'kv/data/artemis/{0}/hermes'.format(var_hermes_environment)).get('apns_certificate_base64') }}"
13+
hermes_google_application_credentials_json_path: artemis.json
14+
hermes_google_application_credentials_content: "{{ lookup('hashi_vault', 'kv/data/artemis/{0}/hermes'.format(var_hermes_environment)).get('google_certificate') }}"
15+
hermes_working_directory: /opt/hermes
16+
hermes_port: 17333

0 commit comments

Comments
 (0)