From b0a314d324037e61a42fa730bb5ab4599d416e6d Mon Sep 17 00:00:00 2001 From: Reik Keutterling Date: Thu, 24 Apr 2014 15:09:44 +0200 Subject: [PATCH] Bug: AddressFamily must be specified before ListenAddress --- templates/sshd_config.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/sshd_config.erb b/templates/sshd_config.erb index 74f479699..a80bb20a2 100644 --- a/templates/sshd_config.erb +++ b/templates/sshd_config.erb @@ -1,5 +1,8 @@ # File is managed by Puppet <%- options = scope.lookupvar('ssh::server::merged_options') -%> +<%- if addressfamily = options.delete('AddressFamily') -%> +AddressFamily <%= addressfamily %> +<%- end -%> <%- if port = options.delete('Port') -%> <%- if port.is_a?(Array) -%> <%- port.each do |p| -%>