Skip to content

Commit

Permalink
Merge pull request #101 from ls1intum/feature/telemetry-service
Browse files Browse the repository at this point in the history
added variables for telemetry service
  • Loading branch information
Hialus authored Sep 5, 2024
2 parents df0f481 + 007ec85 commit d3104ff
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ artemis_repo_basepath: "/mnt/storage"
artemis_legal_path: "/mnt/storage/legal"
artemis_data_export_path: "/mnt/storage/data-exports"

# Telemetry configuration
artemis_operator_name: "Example University Name" # FIXME: Set the name of your university
artemis_operator_admin_name: "Max Mustermann" # FIXME: Set the name of the main admin
artemis_telemetry_enabled: true
artemis_send_admin_details: true

##############################################################################
# External Systems Configuration
##############################################################################
Expand Down
6 changes: 6 additions & 0 deletions roles/artemis/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,14 @@ artemis_jhipster_jwt: #FIXME
artemis_jhipster_registry_password: #FIXME Multinode

artemis_email: artemis.in@tum.de
artemis_operator_name: "Anonymous University"
artemis_operator_admin_name: "Anonymous University Admin"
artemis_notification_from: "Artemis Notification"

artemis_telemetry_enabled: true
artemis_send_admin_details: true
artemis_telemetry_destination: "telemetry.artemis.cit.tum.de"

artemis_working_directory: "/opt/artemis"
artemis_repo_basepath: "."

Expand Down
7 changes: 7 additions & 0 deletions roles/artemis/templates/application-prod.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@ artemis:
event-logging:
enable: {{ enable_science_event_logging | lower }}
{% endif %}

telemetry:
enabled: {{ artemis_telemetry_enabled }}
sendAdminDetails: {{ artemis_send_admin_details }}
destination: {{ artemis_telemetry_destination }}
{% endif %}

{% if theia is defined and theia is not none %}
Expand Down Expand Up @@ -362,6 +367,8 @@ info:
- modeling_tour: 'UML Class Diagram'
- programming_exercise_fail_tour: 'tutorial'
- programming_exercise_success_tour: 'tutorial'
operatorName: {{ artemis_operator_name }}
operatorAdminName: {{ artemis_operator_admin_name }}
contact: {{ artemis_email }}
imprint: https://ase.in.tum.de/lehrstuhl_1/component/content/article/179-imprint
{% if is_testserver is defined and is_testserver is sameas true %}
Expand Down
5 changes: 5 additions & 0 deletions roles/artemis/templates/artemis.env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ ARTEMIS_IRIS_SECRETTOKEN='{{ iris.secret }}'
{% if enable_science_event_logging is defined %}
ARTEMIS_SCIENCE_EVENTLOGGING_ENABLE='{{ enable_science_event_logging | lower }}'
{% endif %}
ARTEMIS_TELEMETRY_ENABLED='{{ artemis_telemetry_enabled }}'
ARTEMIS_TELEMETRY_SENDADMINDETAILS='{{ artemis_send_admin_details }}'
ARTEMIS_TELEMETRY_DESTINATION='{{ artemis_telemetry_destination }}'
{% if theia is defined and theia is not none %}
{% if theia.portal_url is defined and theia.portal_url is not none %}
THEIA_PORTALURL='{{ theia.portal_url }}'
Expand Down Expand Up @@ -247,6 +250,8 @@ INFO_GUIDEDTOUR_TOURS_3_COURSEEXERCISEOVERVIEWTOUR='tutorial'
INFO_GUIDEDTOUR_TOURS_4_MODELINGTOUR='UML Class Diagram'
INFO_GUIDEDTOUR_TOURS_5_PROGRAMMINGEXERCISEFAILTOUR='tutorial'
INFO_GUIDEDTOUR_TOURS_6_PROGRAMMINGEXERCISESUCCESSTOUR='tutorial'
INFO_OPERATORNAME='{{ artemis_operator_name }}'
INFO_OPERATORADMINNAME='{{ artemis_operator_admin_name }}'
INFO_CONTACT='{{ artemis_email }}'
INFO_IMPRINT='https://ase.in.tum.de/lehrstuhl_1/component/content/article/179-imprint'
{% if is_testserver is defined and is_testserver is sameas true %}
Expand Down

0 comments on commit d3104ff

Please sign in to comment.