From 958d614beff083a6d5c937afd1ff1f1a58c2eb45 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Fri, 17 Jul 2020 09:21:47 -0400 Subject: [PATCH] [fix] Only show motd ip message on manager node --- salt/motd/files/so_motd.jinja | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/salt/motd/files/so_motd.jinja b/salt/motd/files/so_motd.jinja index 4b22eb56c..43ad3b4de 100644 --- a/salt/motd/files/so_motd.jinja +++ b/salt/motd/files/so_motd.jinja @@ -1,9 +1,11 @@ {% set needs_restarting_check = salt['mine.get']('*', 'needs_restarting.check', tgt_type='glob') -%} +{% set role = grains.id.split('_') | last -%} {% set url = salt['pillar.get']('manager:url_base') -%} - +{% if role in ['eval', 'managersearch', 'manager', 'standalone'] %} Access the Security Onion web interface at https://{{ url }} (You may need to run so-allow first if you haven't yet) +{% endif %} {%- if needs_restarting_check %} {%- set minions_need_restarted = [] %}