diff --git a/templates/ssh_config.erb b/templates/ssh_config.erb index cf4703bc0..9bb8bc69a 100644 --- a/templates/ssh_config.erb +++ b/templates/ssh_config.erb @@ -1,9 +1,9 @@ # File managed by Puppet -<%- scope.lookupvar('ssh::client::merged_options').each do |k, v| -%> +<%- scope.lookupvar('ssh::client::merged_options').sort.each do |k, v| -%> <%- if v.is_a?(Hash) -%> <%= k %> -<%- v.each do |key, value| -%> +<%- v.sort.each do |key, value| -%> <%- if value.is_a?(Array) -%> <%- value.each do |a| -%> <%= key %> <%= a %> diff --git a/templates/sshd_config.erb b/templates/sshd_config.erb index 1fcd20944..b1adfbee6 100644 --- a/templates/sshd_config.erb +++ b/templates/sshd_config.erb @@ -1,9 +1,9 @@ # File is managed by Puppet -<%- scope.lookupvar('ssh::server::merged_options').each do |k, v| -%> +<%- scope.lookupvar('ssh::server::merged_options').sort.each do |k, v| -%> <%- if v.is_a?(Hash) -%> <%= k %> -<%- v.each do |key, value| -%> +<%- v.sort.each do |key, value| -%> <%- if value.is_a?(Array) -%> <%- value.each do |a| -%> <%= key %> <%= a %>