[fix] Only show motd ip message on manager node

This commit is contained in:
William Wernert
2020-07-17 09:21:47 -04:00
parent 442e870c16
commit 958d614bef

View File

@@ -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 = [] %}