From 221f1ccef4b81dd63c5a05e7990f3b5c2026d285 Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Mon, 14 Sep 2015 17:18:57 +0200 Subject: [PATCH] Fix minor bug for ssh known_hosts management with salt >= 2015.5.5. This version complains that "argument port can not be used in conjunction with argument hash_hostname", so add hash_hostname to the fields we handle in the formula so we can override it if needed. --- users/init.sls | 3 +++ 1 file changed, 3 insertions(+) diff --git a/users/init.sls b/users/init.sls index fc65292..a1915a0 100644 --- a/users/init.sls +++ b/users/init.sls @@ -301,6 +301,9 @@ users_ssh_known_hosts_{{ name }}_{{ loop.index0 }}: {% if 'enc' in host %} - enc: {{ host['enc'] }} {% endif -%} + {% if 'hash_hostname' in host %} + - hash_hostname: {{ host['hash_hostname'] }} + {% endif -%} {% endfor %} {% endif %}