From 1afa887a2e99bc97ebae388d74185ec4e11a38ed Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 29 Sep 2008 22:45:39 +0000 Subject: factored out the package to some subclasses as openbsd doesn't need such a package git-svn-id: https://svn/ipuppet/trunk/modules/sshd@2265 d66ca3ae-40d7-4aa7-90d4-87d79ca94279 --- manifests/client.pp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'manifests') 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', -- cgit v1.2.3