summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Jacobsen <john@mail.npxdesigns.com>2013-11-18 17:11:24 -0600
committerJohn Jacobsen <john@mail.npxdesigns.com>2013-11-18 17:11:24 -0600
commit0d5e10790f83b6f2662bb89d34c510bb29f403bc (patch)
treef533d783e570d96df491c4afbf754ff1ad45744e
parent2b8ec04df6734e70b2d64f3d533b7e6ed5665ecf (diff)
Add support for Scientific Linux
Fixes #39. Tested manually in a few cases on a Vagrant Scientific Linux 6 VM and seems to work OK so far.
-rw-r--r--manifests/init.pp2
-rw-r--r--manifests/install.pp4
2 files changed, 3 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 2a9a44c..c4e469d 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -42,7 +42,7 @@ class python (
) {
# Module compatibility check
- $compatible = [ 'Debian', 'Ubuntu', 'CentOS', 'RedHat' ]
+ $compatible = [ 'Debian', 'Ubuntu', 'CentOS', 'RedHat', 'Scientific' ]
if ! ($::operatingsystem in $compatible) {
fail("Module is not compatible with ${::operatingsystem}")
}
diff --git a/manifests/install.pp b/manifests/install.pp
index 9306e3a..415092e 100644
--- a/manifests/install.pp
+++ b/manifests/install.pp
@@ -6,8 +6,8 @@ class python::install {
}
$pythondev = $::operatingsystem ? {
- /(?i:RedHat|CentOS|Fedora)/ => "${python}-devel",
- /(?i:Debian|Ubuntu)/ => "${python}-dev"
+ /(?i:RedHat|CentOS|Fedora|Scientific)/ => "${python}-devel",
+ /(?i:Debian|Ubuntu)/ => "${python}-dev"
}
package { $python: ensure => present }