File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
manifests/plugin/remote_execution Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 9595 }
9696
9797 if $ssh_host_ca_public_keys_file {
98- $ca_keys_content = file ($ssh_host_ca_public_keys_file )
99- $ca_keys_lines = split($ca_keys_content , " \n " ).filter |$line | { $line =~ /\S/ }
100- $ca_known_hosts_content = $ca_keys_lines .map |$line | { " @cert-authority * ${line} " }.join(" \n " )
98+ $ca_keys = split(file ($ssh_host_ca_public_keys_file ), " \n " )
10199
102100 file { $ssh_ca_known_hosts_file:
103101 ensure => file ,
104102 owner => $foreman_proxy::user ,
105103 group => $foreman_proxy::group ,
106104 mode => ' 0600' ,
107- content => " ${ca_known_hosts_content} \n " ,
105+ content => epp( ' foreman_proxy/plugin/ssh_ca_known_hosts.epp ' , { ' ca_keys ' => $ca_keys }) ,
108106 }
109107 } else {
110108 file { $ssh_ca_known_hosts_file:
Original file line number Diff line number Diff line change 1+ <%- | Array[String] $ca_keys | -%>
2+ <%- $ca_keys.filter |$line| { $line =~ /\S/ }.each |$line| { -%>
3+ @cert-authority * <%= $line %>
4+ <%- } -%>
You can’t perform that action at this time.
0 commit comments