Permalink
Browse files

Added README and updated to support epel erlang packages, per COOK-764.

  • Loading branch information...
1 parent 420ec00 commit 128548429d8e3069dd8ad20143ea0621525c6ff2 @mattray mattray committed Sep 17, 2011
Showing with 49 additions and 2 deletions.
  1. +36 −0 erlang/README.md
  2. +3 −2 erlang/metadata.rb
  3. +10 −0 erlang/recipes/default.rb
View
@@ -0,0 +1,36 @@
+Description
+===========
+Manages installation of erlang packages. For Debian/Ubuntu this means the distro version of 'erlang'. For RHEL/CentOS this means following the recommendation of RabbitMQ.com and adds an updated version of erlang and access to the EPEL Yum repository.
+
+http://www.rabbitmq.com/server.html
+
+Requirements
+============
+Platform
+--------
+Tested with Ubuntu 10.04 and CentOS 5.6.
+
+Recipes
+=======
+default
+-------
+Manages installation of erlang packages.
+
+License and Author
+==================
+
+Author: Matt Ray (<matt@opscode.com>)
+
+Copyright 2011, Opscode, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
View
@@ -2,10 +2,11 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs erlang, optionally install GUI tools."
-version "0.8.2"
+version "0.9.0"
+depends "yum", ">= 0.5.0"
recipe "erlang", "Installs erlang"
-%w{ ubuntu debian }.each do |os|
+%w{ ubuntu debian redhat centos scientific }.each do |os|
supports os
end
View
@@ -1,8 +1,10 @@
# Cookbook Name:: erlang
# Recipe:: default
# Author:: Joe Williams <joe@joetify.com>
+# Author:: Matt Ray <matt@opscode.com>
#
# Copyright 2008-2009, Joe Williams
+# Copyright 2011, Opscode Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -22,6 +24,14 @@
erlpkg = node[:erlang][:gui_tools] ? "erlang" : "erlang-nox"
package erlpkg
package "erlang-dev"
+when "redhat", "centos", "scientific"
+ include_recipe "yum::epel"
+ yum_repository "erlang" do
+ name "EPELErlangrepo"
+ url "http://repos.fedorapeople.org/repos/peter/erlang/epel-5Server/#{node['kernel']['machine']}"
+ action :add
+ end
+ package "erlang"
else
package "erlang"
end

0 comments on commit 1285484

Please sign in to comment.