From f6a792c399979ac7203d1cdfa6833b3381d7c2df Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Fri, 31 Mar 2023 17:22:48 +0200 Subject: [PATCH] updated ssh state --- states/ssh/templates/sshd_config.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/states/ssh/templates/sshd_config.j2 b/states/ssh/templates/sshd_config.j2 index c1d386b..b50d88b 100644 --- a/states/ssh/templates/sshd_config.j2 +++ b/states/ssh/templates/sshd_config.j2 @@ -1,13 +1,14 @@ ## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }} {%- from "ssh/map.jinja" import ssh with context %} +{%- from "ssh/map.jinja" import net with context %} {%- for key, value in ssh.sshd_config.items() %} {{ key }} {{ value }} {%- endfor %} -Match Address {{ salt['pillar.get']('net:ip_networks')|join(',') }} +Match Address {{ net.ip_networks|join(',') }} PasswordAuthentication yes -Match Address {{ salt['pillar.get']('net:ip_networks')|join(',') }} +Match Address {{ net.ip_networks|join(',') }} PasswordAuthentication yes