From 1b638c366e3e36ca46cd756ff7879e2605c85451 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 14 Aug 2025 12:49:06 +0200 Subject: [PATCH] Introduced variable SOFTWARE_NAME, to make better visible when software components are used. Will be relevant for OIDC --- group_vars/all/00_general.yml | 4 +++- group_vars/all/15_about.yml | 8 ++++---- playbook.yml | 2 +- roles/user/templates/bashrc.j2 | 4 ++-- roles/web-app-gitea/config/main.yml | 2 +- roles/web-app-port-ui/templates/menu/followus.yml.j2 | 2 +- 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/group_vars/all/00_general.yml b/group_vars/all/00_general.yml index a38dbf93..8d40c332 100644 --- a/group_vars/all/00_general.yml +++ b/group_vars/all/00_general.yml @@ -1,4 +1,6 @@ -ENVIRONMENT: "production" # Possible values: production, development +SOFTWARE_NAME: "Infinito.Nexus" # Name of the software + +ENVIRONMENT: "production" # Possible values: production, development # If true, sensitive credentials will be masked or hidden from all Ansible task logs # Recommendet to set to true diff --git a/group_vars/all/15_about.yml b/group_vars/all/15_about.yml index b11a22d9..0bf5a226 100644 --- a/group_vars/all/15_about.yml +++ b/group_vars/all/15_about.yml @@ -2,8 +2,8 @@ defaults_service_provider: type: "legal" # Accepted Values: natural, legal company: - titel: "Infinito.Nexus by Kevin Veen-Birkenbach" - slogan: "Infinito.Nexus — Empowering a Sovereign Digital Future." + titel: "{{ SOFTWARE_NAME }} by Kevin Veen-Birkenbach" + slogan: "{{ SOFTWARE_NAME }} — Empowering a Sovereign Digital Future." address: street: "Binary Avenue 01" city: "Cybertown" @@ -11,7 +11,7 @@ defaults_service_provider: country: "Nexusland" logo: "{{ applications['web-svc-asset'].url ~ '/img/logo.png' }}" platform: - titel: "Infinito.Nexus" + titel: "{{ SOFTWARE_NAME }}" subtitel: "One login. Infinite applications." logo: "{{ applications['web-svc-asset'].url ~ '/img/logo.png' }}" favicon: "{{ applications['web-svc-asset'].url ~ '/img/favicon.ico' }}" @@ -29,5 +29,5 @@ defaults_service_provider: legal: editorial_responsible: "Johannes Gutenberg" - source_code: "https://s.infinito.nexus/code" + source_code: "https://s.{{ SOFTWARE_NAME | lower }}/code" imprint: "{{WEB_PROTOCOL}}://{{ domains | get_domain('web-svc-html') }}/imprint.html" \ No newline at end of file diff --git a/playbook.yml b/playbook.yml index 2d4540a3..0b35ba7e 100644 --- a/playbook.yml +++ b/playbook.yml @@ -1,4 +1,4 @@ -- name: Execute Infinito.Nexus Play +- name: Execute {{ SOFTWARE_NAME }} Play hosts: all tasks: - name: "Load 'constructor' tasks" diff --git a/roles/user/templates/bashrc.j2 b/roles/user/templates/bashrc.j2 index 9f88751c..52ae31e3 100644 --- a/roles/user/templates/bashrc.j2 +++ b/roles/user/templates/bashrc.j2 @@ -23,11 +23,11 @@ PRIMARY_IP=$(ip route get 8.8.8.8 2>/dev/null | awk '{print $7}' | head -n1) echo -e "${HEADER_COLOR}Welcome, $USER on ${HOSTNAME_COLOR}$(hostname)!${RESET_COLOR}" echo -e "Primary IP Address: ${PRIMARY_IP}" echo -e "${HEADER_COLOR}Today is $(date +"%A, %d.%m.%Y %T")${RESET_COLOR}" -echo -e "\033[94mPowered by: Infinito.Nexus" +echo -e "\033[94mPowered by: {{ SOFTWARE_NAME }}" echo -e "\033[1;31mWARNING: This software is not to be used for generating commercial profits.\033[94m" echo -e "If you require a license for commercial use, please contact Kevin Veen-Birkenbach, the author and copyright holder.\n" echo -e "More Information:" -echo -e "- About Infinito.Nexus: \033[35mhttps://s.veen.world/infinito\033[94m" +echo -e "- About {{ SOFTWARE_NAME }}: \033[35mhttps://s.veen.world/infinito\033[94m" echo -e "- About the author: \033[35mhttps://www.veen.world\033[94m" echo "" diff --git a/roles/web-app-gitea/config/main.yml b/roles/web-app-gitea/config/main.yml index 8bb35906..a1d91998 100644 --- a/roles/web-app-gitea/config/main.yml +++ b/roles/web-app-gitea/config/main.yml @@ -1,4 +1,4 @@ -title: "Infinito.Nexus Code Hub" # @todo load automatic based on service_porvider infos +title: "{{ SOFTWARE_NAME }} Code Hub" # @todo load automatic based on service_porvider infos configuration: repository: enable_push_create_user: True # Allow users to push local repositories to Gitea and have them automatically created for a user. diff --git a/roles/web-app-port-ui/templates/menu/followus.yml.j2 b/roles/web-app-port-ui/templates/menu/followus.yml.j2 index 3875f22b..7e79e5a0 100644 --- a/roles/web-app-port-ui/templates/menu/followus.yml.j2 +++ b/roles/web-app-port-ui/templates/menu/followus.yml.j2 @@ -1,6 +1,6 @@ followus: name: Follow Us - description: Follow us to stay up to recieve the newest Infinito.Nexus updates + description: Follow us to stay up to recieve the newest {{ SOFTWARE_NAME }} updates icon: class: fas fa-newspaper {% if ["web-app-mastodon", "web-app-bluesky"] | any_in(group_names) %}