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
d73f14bf
Commit
d73f14bf
authored
Jun 16, 2021
by
Fabian Galinski
😾
Browse files
[FEATURE] Adds a setting to install additional packages
parent
8f0e6bbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
attributes/default.rb
View file @
d73f14bf
...
...
@@ -2,3 +2,11 @@ default['ubuntu_base']['locales'] = %w(en_US.utf8 en_GB.utf8 de_DE.utf8)
default
[
'ubuntu_base'
][
'timezone'
]
=
'Europe/Berlin'
default
[
'locales'
][
'default'
]
=
'en_US.utf8'
default
[
'ubuntu_base'
][
'php_version'
]
=
'7.3'
# Example:
# [
# {
# :name => 'yarn'
# }
# ]
default
[
'ubuntu_base'
][
'additional_packages'
]
=
[]
recipes/default.rb
View file @
d73f14bf
...
...
@@ -152,3 +152,11 @@ execute 'apt install aptitude'
######################
execute
'apt install locate'
###################################
### Install additional packages ###
###################################
node
[
'ubuntu_base'
][
'additional_packages'
].
each
do
|
additionalPackage
|
execute
'apt install '
+
additionalPackage
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