Skip to content

Commit

Permalink
[recipes/default] add scientific support by switching to platform_fam…
Browse files Browse the repository at this point in the history
…ily approach
  • Loading branch information
Chris Lundquist committed Nov 2, 2012
1 parent 474e3e6 commit 1cc0e77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
description "Installs CouchDB package and starts service"
long_description <<-EOH
Installs the CouchDB package if it is available from an package repository on
the node. If the package repository is not available, CouchDB needs to be
installed via some other method, either a backported package, or compiled
the node. If the package repository is not available, CouchDB needs to be
installed via some other method, either a backported package, or compiled
directly from source. CouchDB is available on Red Hat-based systems through
the EPEL Yum Repository.
EOH
Expand All @@ -19,6 +19,6 @@
supports "openbsd"
supports "freebsd"

%w{ rhel centos fedora }.each do |os|
%w{ rhel centos fedora scientific}.each do |os|
supports os # requires EPEL Yum Repository
end
6 changes: 3 additions & 3 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

include_recipe "erlang"

case node['platform']
when "redhat","centos","fedora","amazon"
case node['platform_family']
when "redhat","fedora"
group "couchdb" do
system true
end
Expand Down Expand Up @@ -65,7 +65,7 @@
end

service "couchdb" do
if platform?("centos","redhat","fedora")
if platform_family?("redhat","fedora")
start_command "/sbin/service couchdb start &> /dev/null"
stop_command "/sbin/service couchdb stop &> /dev/null"
end
Expand Down

0 comments on commit 1cc0e77

Please sign in to comment.