Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parameterize the UserKnownHostsFile /dev/null setting
Browse files Browse the repository at this point in the history
blaind committed Jan 20, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f588b5e commit bc105d5
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions manifests/client/config.pp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class ssh::client::config {
class ssh::client::config inherits ssh {
file { $ssh::params::ssh_config:
ensure => present,
owner => 'root',
group => 'root',
source => "puppet:///modules/${module_name}/ssh_config",
content => template("${module_name}/ssh_config.erb"),
require => Class['ssh::client::install'],
}

4 changes: 3 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class ssh {
class ssh (
$disable_user_known_hosts = true
) {
include ssh::server
include ssh::client
}
2 changes: 2 additions & 0 deletions files/ssh_config → templates/ssh_config.erb
Original file line number Diff line number Diff line change
@@ -51,4 +51,6 @@ Host *
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no
<% if disable_user_known_hosts %>
UserKnownHostsFile /dev/null
<% end %>

0 comments on commit bc105d5

Please sign in to comment.