codestyle
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@615 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
This commit is contained in:
parent
c247ed88fb
commit
3a98e63253
1 changed files with 19 additions and 21 deletions
|
@ -9,9 +9,9 @@ class sshd {
|
|||
case $operatingsystem {
|
||||
OpenBSD: {
|
||||
exec{sshd_refresh:
|
||||
command => "/bin/kill -HUP `/bin/cat /var/run/sshd.pid`",
|
||||
refreshonly => true,
|
||||
}
|
||||
command => "/bin/kill -HUP `/bin/cat /var/run/sshd.pid`",
|
||||
refreshonly => true,
|
||||
}
|
||||
}
|
||||
default: {
|
||||
service{'sshd':
|
||||
|
@ -21,20 +21,18 @@ class sshd {
|
|||
}
|
||||
|
||||
package{openssh:
|
||||
name => $operatingsystem ? {
|
||||
centos => openssh-server,
|
||||
default => openssh,
|
||||
},
|
||||
category => $operatingsystem ? {
|
||||
gentoo => 'net-misc',
|
||||
default => '',
|
||||
},
|
||||
ensure => present,
|
||||
name => $operatingsystem ? {
|
||||
centos => openssh-server,
|
||||
default => openssh,
|
||||
},
|
||||
category => $operatingsystem ? {
|
||||
gentoo => 'net-misc',
|
||||
default => '',
|
||||
},
|
||||
ensure => present,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
define sshd::sshd_config (
|
||||
|
@ -47,14 +45,14 @@ define sshd::sshd_config (
|
|||
}
|
||||
|
||||
file { 'sshd_config':
|
||||
path => '/etc/ssh/sshd_config',
|
||||
owner => root,
|
||||
group => 0,
|
||||
mode => 600,
|
||||
content => template("sshd/sshd_config/${real_source}"),
|
||||
path => '/etc/ssh/sshd_config',
|
||||
owner => root,
|
||||
group => 0,
|
||||
mode => 600,
|
||||
content => template("sshd/sshd_config/${real_source}"),
|
||||
notify => $operatingsystem ? {
|
||||
openbsd => Exec[sshd_refresh],
|
||||
default => Service[sshd],
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue