]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
fixed language problem
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Sat, 2 Feb 2008 00:23:09 +0000 (00:23 +0000)
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Sat, 2 Feb 2008 00:23:09 +0000 (00:23 +0000)
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@731 d66ca3ae-40d7-4aa7-90d4-87d79ca94279

manifests/init.pp

index 375168af013e671166ab1e89fbaf055c5dd2c36b..3ab03df5ef259b9b1335607cf6577cde78a2d0df 100644 (file)
@@ -15,27 +15,34 @@ class sshd {
                }
                default: {
                        service{'sshd':
-                name => $operatingsystem ? {
-                    debian => 'ssh',
-                    ubuntu => 'ssh',
-                    default => 'sshd',
-                },
                 enable => true,
                 ensure => running,
                                require => Package[openssh],
             }
+            
+            case $operatingsystem {
+                debian,ubuntu: {
+                    service{sshd:
+                        name => 'ssh',
+                    }
+                }
+            }
                        
                        package{openssh:
-                       name =>  $operatingsystem ? {
-                           centos,debian,ubuntu => openssh-server,
-                       default => openssh,
-                           },
                 category => $operatingsystem ? {
                        gentoo => 'net-misc',
                                default => '',
                    },
                        ensure => present,
                        }
+
+            case $operatingsystem {
+                centos,redhat,debian,ubuntu: {
+                    package{openssh:
+                        name => 'openssh-server',
+                    }
+                }
+            }
                }
        }
 }