### File managed with puppet ###
## Module: '<%= scope.to_hash['module_name'] %>'
## Template source: 'MODULES<%= template_source.gsub(Regexp.new("^#{Puppet::Node::Environment.current[:modulepath].gsub(':','|')}"),"") %>'
<% if @trusted_cert_authorities.respond_to?(:sort_by) -%>
<%   @trusted_cert_authorities.sort_by { |name| name }.each  do |name, key| -%>
<%     if key.is_a?(String) -%>
# key for <%= name %>
@cert-authority * ssh-rsa <%= key %>
<%     elsif key.is_a?(Hash) -%>
# key for <%= name %>
@cert-authority <%= key['hostaliases'] || '*' %> <%= key['type'] || 'ssh-rsa' %> <%= key['content'] %>
<%     end -%>
<%   end -%>
<% end -%>

<% if @generated_known_hosts -%>
# automatically generated known hosts (managed hostkeys)
<%= @generated_known_hosts %>
<% end -%>
# explicitly configured known hosts via ssh::known_hosts::additional_known_hosts
<% if @additional_known_hosts -%>
<%= @additional_known_hosts %>
<% end -%>

### File managed with puppet ###
## Module: '<%= scope.to_hash['module_name'] %>'
<% if @trusted_cert_authorities.respond_to?(:sort_by) -%>
<%   @trusted_cert_authorities.sort_by { |name| name }.each  do |name, key| -%>
<%     if key.is_a?(String) -%>
# key for <%= name %>
@cert-authority * ssh-rsa <%= key %>
<%     elsif key.is_a?(Hash) -%>
# key for <%= name %>
@cert-authority <%= key['hostaliases'] || '*' %> <%= key['type'] || 'ssh-rsa' %> <%= key['content'] %>
<%     end -%>
<%   end -%>
<% end -%>

<% if @generated_known_hosts -%>
# automatically generated known hosts (managed hostkeys)
<%= @generated_known_hosts %>
<% end -%>
# explicitly configured known hosts via ssh::known_hosts::additional_known_hosts
<% if @additional_known_hosts -%>
<%= @additional_known_hosts %>
<% end -%>

Remove puppet-version specific stuff from template
Remove puppet-version specific stuff from template
