summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2010-12-23 10:57:35 +0100
committerMarcel Haerry <haerry@puzzle.ch>2010-12-23 10:57:35 +0100
commitbfcc19e628073a0f8e6646308399dfec5dbb188d (patch)
tree4da7cd07c30f2c729ea24bbd38ad09973ec6ff55
parente5b8e782a0b3c878c9a55efda242ef0a3949c922 (diff)
make shadow also working on debian
-rw-r--r--manifests/shadow.pp6
-rw-r--r--manifests/shadow/base.pp6
-rw-r--r--manifests/shadow/debian.pp5
3 files changed, 14 insertions, 3 deletions
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'
+ }
+}