Commit 9a6ce8a7 authored by Jeroen Nijhof's avatar Jeroen Nijhof

Add use_key attribute to make it more visable

parent 63254939
default['omnibus-gitlab']['package']['url'] = 'https://downloads-packages.s3.amazonaws.com/ubuntu-12.04/gitlab_6.9.0-omnibus-1_amd64.deb'
default['omnibus-gitlab']['package']['sha256'] = '42e8224f8aa8689ba80380d036a3b367ffb63a85b5e447670a5233d888b85924'
default['omnibus-gitlab']['package']['repo'] = 'gitlab/gitlab-ce'
default['omnibus-gitlab']['package']['key'] = nil
default['omnibus-gitlab']['package']['key'] = 'set key in vault'
default['omnibus-gitlab']['package']['use_key'] = false
default['omnibus-gitlab']['package']['base_url'] = 'packages.gitlab.com'
default['omnibus-gitlab']['package']['scheme_url'] = 'https'
default['omnibus-gitlab']['package']['name'] = 'gitlab-ce'
......
......@@ -15,7 +15,7 @@ attributes_with_secrets = if node['omnibus-gitlab']['data_bag']
end
pkg_url = "#{node['omnibus-gitlab']['package']['scheme_url']}://#{node['omnibus-gitlab']['package']['base_url']}"
pkg_url = "#{node['omnibus-gitlab']['package']['scheme_url']}://#{attributes_with_secrets['package']['key']}:@#{node['omnibus-gitlab']['package']['base_url']}" if attributes_with_secrets['package']['key']
pkg_url = "#{node['omnibus-gitlab']['package']['scheme_url']}://#{attributes_with_secrets['package']['key']}:@#{node['omnibus-gitlab']['package']['base_url']}" if node['omnibus-gitlab']['package']['use_key']
pkg_repo = node['omnibus-gitlab']['package']['repo']
package 'curl'
......
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