diff --git a/examples/multi-node-production-icl/group_vars/artemis_cluster.yml b/examples/multi-node-production-icl/group_vars/artemis_cluster.yml index 0b5bf62..99281b7 100644 --- a/examples/multi-node-production-icl/group_vars/artemis_cluster.yml +++ b/examples/multi-node-production-icl/group_vars/artemis_cluster.yml @@ -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 ############################################################################## diff --git a/roles/artemis/defaults/main.yml b/roles/artemis/defaults/main.yml index 9b4b282..bfa5398 100644 --- a/roles/artemis/defaults/main.yml +++ b/roles/artemis/defaults/main.yml @@ -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: "." diff --git a/roles/artemis/templates/application-prod.yml.j2 b/roles/artemis/templates/application-prod.yml.j2 index 939b90c..9d94f28 100644 --- a/roles/artemis/templates/application-prod.yml.j2 +++ b/roles/artemis/templates/application-prod.yml.j2 @@ -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 %} @@ -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 %} diff --git a/roles/artemis/templates/artemis.env.j2 b/roles/artemis/templates/artemis.env.j2 index a91ed9a..fefd049 100644 --- a/roles/artemis/templates/artemis.env.j2 +++ b/roles/artemis/templates/artemis.env.j2 @@ -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 }}' @@ -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 %}