summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-01-02 20:02:15 +0000
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-01-02 20:02:15 +0000
commit147507f159795f3943146248d97a83287b8d8874 (patch)
treece3ca0d0d80263c73f10dbbe780bf6d482e5c391 /manifests
parent6f59d15abfecfe92ea8efa56089389e9c82d3890 (diff)
changed the install behaviour for openbsd
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@348 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp48
1 files changed, 29 insertions, 19 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 40ffd1b..221a95e 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -5,27 +5,37 @@
modules_dir { "sshd": }
class sshd {
- service{'sshd':
- enable => true,
- ensure => running,
- require => $operatingsystem ? {
- openbsd => '',
- default => Package[openssh],
- }
- }
- package{openssh:
- name => $operatingsystem ? {
- centos => openssh-server,
- default => openssh,
- },
- alias => 'openssh',
- category => $operatingsystem ? {
- gentoo => 'net-misc',
- default => '',
- },
- ensure => present,
+ case $operatingsystem {
+ OpenBSD: {
+ service{'sshd':
+ enable => true,
+ ensure => running,
+ }
+ },
+ default: {
+ service{'sshd':
+ enable => true,
+ ensure => running,
+ require => Package[openssh],
+ }
+
+ package{openssh:
+ name => $operatingsystem ? {
+ centos => openssh-server,
+ default => openssh,
+ },
+ alias => 'openssh',
+ category => $operatingsystem ? {
+ gentoo => 'net-misc',
+ default => '',
+ },
+ ensure => present,
+ }
+ }
}
+
+
}
define sshd::sshd_config (