From 4833028767bcbb2f94495e92dbd8430522b05a8f Mon Sep 17 00:00:00 2001 From: mattray Date: Fri, 22 Apr 2011 17:40:01 -0500 Subject: [PATCH] added Scientific Linux support --- openssh/metadata.rb | 4 ++-- openssh/recipes/default.rb | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/openssh/metadata.rb b/openssh/metadata.rb index 44fa10d18..ddd17ef0f 100644 --- a/openssh/metadata.rb +++ b/openssh/metadata.rb @@ -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 diff --git a/openssh/recipes/default.rb b/openssh/recipes/default.rb index 8a981e04d..0bbc00d32 100644 --- a/openssh/recipes/default.rb +++ b/openssh/recipes/default.rb @@ -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} @@ -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" @@ -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 ] } )