Add manage_sshd conditional

Allow sshd configuration to be skipped on "special" machines using
an optional "manage_sshd: False" pillar option.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-05-02 19:30:33 +02:00
parent 6763d1b64e
commit 8776b16be1
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -1,5 +1,6 @@
include: include:
- openssh.banner - openssh.banner
{%- if salt['pillar.get']('manage_sshd', True) %}
- openssh.config - openssh.config
/etc/ssh/user_ca: /etc/ssh/user_ca:
@ -10,3 +11,4 @@ include:
{%- endfor -%} {%- endfor -%}
- require: - require:
- pkg: openssh - pkg: openssh
{%- endif %}