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
331491f6
Commit
331491f6
authored
Jun 16, 2021
by
Fabian Galinski
😾
Browse files
[FEATURE] Adds the possibility to set the packageUrl for additional packages
parent
b862f373
Changes
2
Hide whitespace changes
Inline
Side-by-side
attributes/default.rb
View file @
331491f6
...
...
@@ -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'
]
=
[]
recipes/default.rb
View file @
331491f6
...
...
@@ -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
...
...
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