refactored the whole module

git-svn-id: https://svn/ipuppet/trunk/modules/sshd@906 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
This commit is contained in:
mh 2008-02-29 12:09:18 +00:00
parent 5076f8a68d
commit 87e586658b

View file

@ -42,13 +42,9 @@ class sshd {
}
}
}
define sshd::sshd_config(
$source = ''
){
$real_source = $source ? {
'' => "${operatingsystem}_normal.erb",
$real_sshd_config_source = $sshd_config_source ? {
'' => "sshd/sshd_config/${operatingsystem}_normal.erb",
default => $source,
}
@ -64,7 +60,7 @@ define sshd::sshd_config(
owner => root,
group => 0,
mode => 600,
content => template("sshd/sshd_config/${real_source}"),
content => template("${real_sshd_config_source}"),
notify => $operatingsystem ? {
openbsd => Exec[sshd_refresh],
default => Service[sshd],