Skip to content

Commit

Permalink
Add support for Scientific Linux
Browse files Browse the repository at this point in the history
Fixes voxpupuli#39.

Tested manually in a few cases on a Vagrant Scientific Linux 6 VM and
seems to work OK so far.
  • Loading branch information
John Jacobsen committed Nov 18, 2013
1 parent 2b8ec04 commit 0d5e107
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
) {

# 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}")
}
Expand Down
4 changes: 2 additions & 2 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
}

$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 }
Expand Down

0 comments on commit 0d5e107

Please sign in to comment.