fixed language problem
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@731 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
This commit is contained in:
parent
563aa80f8b
commit
dc7d6d0120
1 changed files with 16 additions and 9 deletions
|
@ -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',
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue