Commit 331491f6 authored by Fabian Galinski's avatar Fabian Galinski 😾
Browse files

[FEATURE] Adds the possibility to set the packageUrl for additional packages

parent b862f373
......@@ -8,6 +8,7 @@ default['ubuntu_base']['php_version'] = '7.3'
# {
# :name => 'yarn',
# :gpgKey => 'https://dl.yarnpkg.com/debian/pubkey.gpg'
# :packageUrl => 'https://dl.yarnpkg.com/debian/'
# }
# ]
default['ubuntu_base']['additional_packages'] = []
......@@ -164,6 +164,7 @@ end
node['ubuntu_base']['additional_packages'].each do |additionalPackage|
if additionalPackage['gpgKey'] != ''
execute "curl -sS " + additionalPackage['gpgKey'] + " | sudo apt-key add"
execute 'echo "deb ' + additionalPackage['packageUrl'] + ' stable main" | sudo tee /etc/apt/sources.list.d/yarn.list'
execute "apt update"
end
......
Supports Markdown
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