Permalink
Browse files

[recipes/default] add scientific support by switching to platform_fam…

…ily approach
  • Loading branch information...
1 parent 474e3e6 commit 1cc0e77d202660f139ce440431277b8a72bb71f9 Chris Lundquist committed Nov 2, 2012
Showing with 6 additions and 6 deletions.
  1. +3 −3 metadata.rb
  2. +3 −3 recipes/default.rb
View
@@ -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
@@ -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
View
@@ -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
@@ -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

0 comments on commit 1cc0e77

Please sign in to comment.