Skip to content

Commit

Permalink
added Scientific Linux support
Browse files Browse the repository at this point in the history
  • Loading branch information
mattray committed Apr 22, 2011
1 parent 6732173 commit d43a982
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs openssh"
version "0.8.0"
version "0.8.1"

recipe "openssh", "Installs openssh"

%w{ redhat centos fedora ubuntu debian arch}.each do |os|
%w{ redhat centos fedora ubuntu debian arch scientific }.each do |os|
supports os
end
5 changes: 3 additions & 2 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

packages = case node[:platform]
when "centos","redhat","fedora"
when "centos","redhat","fedora","scientific"
%w{openssh-clients openssh}
when "arch"
%w{openssh}
Expand All @@ -32,7 +32,7 @@

service "ssh" do
case node[:platform]
when "centos","redhat","fedora","arch"
when "centos","redhat","fedora","arch","scientific"
service_name "sshd"
else
service_name "ssh"
Expand All @@ -46,6 +46,7 @@
"centos" => { "default" => [ :restart, :reload, :status ] },
"redhat" => { "default" => [ :restart, :reload, :status ] },
"fedora" => { "default" => [ :restart, :reload, :status ] },
"scientific" => { "default" => [ :restart, :reload, :status ] },
"arch" => { "default" => [ :restart ] },
"default" => { "default" => [:restart, :reload ] }
)
Expand Down

0 comments on commit d43a982

Please sign in to comment.