# for automated deployment environments so your ikiwiki user doesn't
# get stuck with the fingerprint confirmation prompt when pushing
# content via ssh in the first time it runs.
- line { 'NoHostAuthenticationForLocalhost-${owner}':
- file => "${home}/.ssh/config",
+ file_line { 'NoHostAuthenticationForLocalhost-${owner}':
+ path => "${home}/.ssh/config",
line => "NoHostAuthenticationForLocalhost yes",
ensure => $ssh_localhost_auth ? {
'auto' => present,
# You can choose to include the host's fingeprints
# directly into the known_hosts file.
if $::sshrsakey != '' {
- line { 'known_hosts-localhost-rsa-${owner}':
- file => "${home}/.ssh/known_hosts",
+ file_line { 'known_hosts-localhost-rsa-${owner}':
+ path => "${home}/.ssh/known_hosts",
line => "localhost ssh-rsa ${::sshrsakey}",
ensure => $ssh_localhost_auth ? {
'fingerprint' => present,
}
if $::sshdsakey != '' {
- line { 'known_hosts-localhost-dsa-${owner}':
- file => "${home}/.ssh/known_hosts",
+ file_line { 'known_hosts-localhost-dsa-${owner}':
+ path => "${home}/.ssh/known_hosts",
line => "localhost ssh-dss ${::sshdsakey}",
ensure => $ssh_localhost_auth ? {
'fingerprint' => present,
}
if $::sshecdsakey != '' {
- line { 'known_hosts-localhost-ecdsa-${owner}':
- file => "${home}/.ssh/known_hosts",
+ file_line { 'known_hosts-localhost-ecdsa-${owner}':
+ path => "${home}/.ssh/known_hosts",
line => "localhost ecdsa-sha2-nistp256 ${::sshedsakey}",
ensure => $ssh_localhost_auth ? {
'fingerprint' => present,