From 834a6f511527b5d2d142d1ff7fbecd6b42165e95 Mon Sep 17 00:00:00 2001 From: Steffen Zieger Date: Sat, 8 Mar 2014 20:27:54 +0100 Subject: [PATCH] fix Match ordering in sshd config as it needs to be the last part --- templates/sshd_config.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/sshd_config.erb b/templates/sshd_config.erb index b1adfbee6..eab824840 100644 --- a/templates/sshd_config.erb +++ b/templates/sshd_config.erb @@ -1,6 +1,6 @@ # File is managed by Puppet -<%- scope.lookupvar('ssh::server::merged_options').sort.each do |k, v| -%> +<%- scope.lookupvar('ssh::server::merged_options').sort_by{ |sk, sv| sk.to_s.downcase.include? "match" ? sk.to_s : '' }.each do |k, v| -%> <%- if v.is_a?(Hash) -%> <%= k %> <%- v.sort.each do |key, value| -%>