Unverified Commit 80547bfd authored by Tim Smith's avatar Tim Smith Committed by GitHub
Browse files

Merge pull request #64 from don-code/master

Allow specifying a mirror of the ESL repository.
parents 4c1d374d 26341168
......@@ -29,5 +29,13 @@ default['erlang']['source']['cflags'] = ''
default['erlang']['esl']['version'] = nil
default['erlang']['esl']['lsb_codename'] = node['lsb'] ? node['lsb']['codename'] : 'no_lsb'
# NOTE: these parameters are only used by Debian and derivatives. On Red
# Hat-based systems, use the equivalent parameters in the
# `yum-erlang_solutions` cookbook:
# default['yum']['erlang_solutions']['baseurl']
# default['yum']['erlang_solutions']['gpgkey']
default['erlang']['esl']['repo']['uri'] = 'https://packages.erlang-solutions.com/debian/'
default['erlang']['esl']['repo']['key'] = 'https://packages.erlang-solutions.com/debian/erlang_solutions.asc'
default['erlang']['package']['version'] = nil
default['erlang']['package']['install_epel_repository'] = true
......@@ -24,10 +24,10 @@ when 'debian'
package 'apt-transport-https'
apt_repository 'erlang_solutions_repo' do
uri 'https://packages.erlang-solutions.com/debian/'
uri node['erlang']['esl']['repo']['uri']
distribution node['erlang']['esl']['lsb_codename']
components ['contrib']
key 'https://packages.erlang-solutions.com/debian/erlang_solutions.asc'
key node['erlang']['esl']['repo']['key']
action :add
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