Commit b1a5ce1a authored by Seth Thomas's avatar Seth Thomas Committed by GitHub
Browse files

Merge pull request #48 from chef-cookbooks/pkg-version

Allow setting package version via attribute - Fix #45.
parents 00f994e9 c07a3454
......@@ -30,6 +30,7 @@ Manages installation of Erlang via packages or source.
Erlang.
- `node['erlang']['install_method']` - Erlang installation method
("package", "source", or "esl" (for Erlang Solutions packages)).
- `node['erlang']['package']['version']` - OS specific version of Erlang package to install
- `node['erlang']['source']['version']` - Version of Erlang/OTP to install from source.
- `node['erlang']['source']['url']` - URL of Erlang/OTP source tarball.
- `node['erlang']['source']['checksum']` - Checksum of the Erlang/OTP source tarball.
......
......@@ -28,3 +28,5 @@ default['erlang']['source']['cflags'] = ''
default['erlang']['esl']['version'] = nil
default['erlang']['esl']['lsb_codename'] = node['lsb'] ? node['lsb']['codename'] : 'no_lsb'
default['erlang']['package']['version'] = nil
......@@ -44,5 +44,7 @@ when 'rhel', 'suse', 'fedora'
end
include_recipe 'yum-epel' if node['platform_family'] == 'rhel'
package 'erlang'
package 'erlang' do
version node['erlang']['package']['version'] if node['erlang']['package']['version']
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment