aboutsummaryrefslogtreecommitdiff
path: root/manifests/client.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/client.pp')
-rw-r--r--manifests/client.pp17
1 files changed, 12 insertions, 5 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index f0b05c5..0ad85cf 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -3,15 +3,16 @@
class sshd::client {
case $operatingsystem {
debian: { include sshd::client::debian }
- default: { include sshd::client::base }
+ default: {
+ case $kernel {
+ linux: { include sshd::client::linux }
+ default: { include sshd::client::base }
+ }
+ }
}
}
class sshd::client::base {
- package {'openssh-clients':
- ensure => installed,
- }
-
# this is needed because the gid might have changed
file { '/etc/ssh/ssh_known_hosts':
mode => 0644, owner => root, group => 0;
@@ -21,6 +22,12 @@ class sshd::client::base {
Sshkey <<||>>
}
+class sshd::client::linux inherits sshd::client::base {
+ package {'openssh-clients':
+ ensure => installed,
+ }
+}
+
class sshd::client::debian inherits sshd::client::base {
Package['openssh-clients']{
name => 'openssh-client',