Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chef Cookbooks
ubuntu_base
Commits
b862f373
Commit
b862f373
authored
Jun 16, 2021
by
Fabian Galinski
😾
Browse files
[FEATURE] Adds the possibility to set the gpgKey for additional packages
parent
afcbec8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
attributes/default.rb
View file @
b862f373
...
...
@@ -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'
]
=
[]
recipes/default.rb
View file @
b862f373
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment