summaryrefslogtreecommitdiffstats
path: root/salt
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-05-02 19:30:33 +0200
committerGeorg Pfuetzenreuter2023-05-02 19:30:33 +0200
commit8776b16be17eea6463f1adc60f2de6756e9f92a0 (patch)
treed2458b162835350100acf02cc8d6fa4565dd8edf /salt
parent6763d1b64e0f8f50127b0c38b3bdf9a4582e2d3e (diff)
downloadsalt-8776b16be17eea6463f1adc60f2de6756e9f92a0.tar.gz
salt-8776b16be17eea6463f1adc60f2de6756e9f92a0.tar.bz2
salt-8776b16be17eea6463f1adc60f2de6756e9f92a0.zip
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>
Diffstat (limited to 'salt')
-rw-r--r--salt/common/ssh.sls2
1 files changed, 2 insertions, 0 deletions
diff --git a/salt/common/ssh.sls b/salt/common/ssh.sls
index 76033fd..f71e40d 100644
--- a/salt/common/ssh.sls
+++ b/salt/common/ssh.sls
@@ -1,5 +1,6 @@
include:
- openssh.banner
+{%- if salt['pillar.get']('manage_sshd', True) %}
- openssh.config
/etc/ssh/user_ca:
@@ -10,3 +11,4 @@ include:
{%- endfor -%}
- require:
- pkg: openssh
+{%- endif %}