diff options
author | mh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279> | 2008-01-30 23:27:37 +0000 |
---|---|---|
committer | mh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279> | 2008-01-30 23:27:37 +0000 |
commit | 3a98e6325383f9c98b22bcb536e8bed4bccee02d (patch) | |
tree | c5c7e7793832df65735dc1d91494dc21eb9ec988 /manifests/init.pp | |
parent | c247ed88fb301f8fc9eeb0b716a7319337ea7567 (diff) | |
download | puppet-sshd-3a98e6325383f9c98b22bcb536e8bed4bccee02d.tar.gz puppet-sshd-3a98e6325383f9c98b22bcb536e8bed4bccee02d.tar.bz2 |
codestyle
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@615 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 19c518c..06db365 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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], - } - } + }, + } } |