From 35da4203769db3ae67641227d1e0ea2753d70818 Mon Sep 17 00:00:00 2001 From: LinuxSquare <7436714-OfficialLinuxSquare@users.noreply.gitlab.com> Date: Fri, 29 Sep 2023 22:35:56 +0200 Subject: [PATCH] Add BUG_REPORT_URL to motd --- system/base.sls | 1 + system/files/base_motd.jinja | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/system/base.sls b/system/base.sls index ec5a92e..1ceaf93 100644 --- a/system/base.sls +++ b/system/base.sls @@ -45,6 +45,7 @@ system_base_motd: - context: OS_NAME: {{ salt['cmd.shell']('grep -E ^PRETTY_NAME /etc/os-release | cut -d= -f2') }} OS_VERSION: {{ salt['cmd.shell']('grep -E ^VERSION_ID /etc/os-release | cut -d= -f2') }} + OS_ISSUE_URL: {{ salt['cmd.shell']('grep -E ^BUG_REPORT_URL /etc/os-release | cut -d= -f2') }} - user: root - group: root - mode: '0644' \ No newline at end of file diff --git a/system/files/base_motd.jinja b/system/files/base_motd.jinja index 89606aa..7defe58 100644 --- a/system/files/base_motd.jinja +++ b/system/files/base_motd.jinja @@ -11,3 +11,7 @@ OS: {{ OS_NAME }} Version: {{ OS_VERSION }} + +Report issues on: {{ OS_ISSUE_URL }} + +═════════════════════════════════════════════════