From bfcc19e628073a0f8e6646308399dfec5dbb188d Mon Sep 17 00:00:00 2001 From: Marcel Haerry Date: Thu, 23 Dec 2010 10:57:35 +0100 Subject: make shadow also working on debian --- manifests/shadow.pp | 6 +++--- manifests/shadow/base.pp | 6 ++++++ manifests/shadow/debian.pp | 5 +++++ 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 manifests/shadow/base.pp create mode 100644 manifests/shadow/debian.pp diff --git a/manifests/shadow.pp b/manifests/shadow.pp index 2fa6edc..81a7921 100644 --- a/manifests/shadow.pp +++ b/manifests/shadow.pp @@ -1,6 +1,6 @@ class ruby::shadow { - require ::ruby - package{'ruby-shadow': - ensure => installed, + case $operatingsystem { + debian,ubuntu: { include ruby::shadow::debian } + default: { include ruby::shadow::base } } } diff --git a/manifests/shadow/base.pp b/manifests/shadow/base.pp new file mode 100644 index 0000000..af8c5c9 --- /dev/null +++ b/manifests/shadow/base.pp @@ -0,0 +1,6 @@ +class ruby::shadow::base { + require ::ruby + package{'ruby-shadow': + ensure => installed, + } +} diff --git a/manifests/shadow/debian.pp b/manifests/shadow/debian.pp new file mode 100644 index 0000000..7887137 --- /dev/null +++ b/manifests/shadow/debian.pp @@ -0,0 +1,5 @@ +class ruby::shadow::debian inherits ruby::shadow::base { + Package['ruby-shadow']{ + name => 'libshadow-ruby1.8' + } +} -- cgit v1.2.3