mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
18 lines
360 B
Plaintext
18 lines
360 B
Plaintext
{% set show_top = salt['state.show_top']() %}
|
|
{% set top_states = show_top.values() | join(', ') %}
|
|
|
|
{% if 'motd' in top_states %}
|
|
|
|
so_motd:
|
|
file.managed:
|
|
- name: /etc/motd
|
|
- source: salt://motd/files/so_motd.jinja
|
|
- template: jinja
|
|
|
|
{% else %}
|
|
|
|
motd_state_not_allowed:
|
|
test.fail_without_changes:
|
|
- name: motd_state_not_allowed
|
|
|
|
{% endif %} |