aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
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 (