summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'
+ }
+}