Commit b862f373 authored by Fabian Galinski's avatar Fabian Galinski 😾
Browse files

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

parent afcbec8a
......@@ -6,7 +6,8 @@ default['ubuntu_base']['php_version'] = '7.3'
# Example:
# [
# {
# :name => 'yarn'
# :name => 'yarn',
# :gpgKey => 'https://dl.yarnpkg.com/debian/pubkey.gpg'
# }
# ]
default['ubuntu_base']['additional_packages'] = []
......@@ -162,6 +162,11 @@ end
###################################
node['ubuntu_base']['additional_packages'].each do |additionalPackage|
if additionalPackage['gpgKey'] != ''
execute "curl -sS " + additionalPackage['gpgKey'] + " | sudo apt-key add"
execute "apt update"
end
package additionalPackage['name'] do
action 'upgrade'
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