Skip to content

Commit

Permalink
Added README and updated to support epel erlang packages, per COOK-764.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattray committed Sep 17, 2011
1 parent 420ec00 commit 1285484
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
36 changes: 36 additions & 0 deletions erlang/README.md
@@ -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.
5 changes: 3 additions & 2 deletions erlang/metadata.rb
Expand Up @@ -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
10 changes: 10 additions & 0 deletions erlang/recipes/default.rb
@@ -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.
Expand All @@ -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.