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
1fd1b13f
Commit
1fd1b13f
authored
Aug 02, 2016
by
Stefan Galinski
🎮
Browse files
[BUGFIX] Fix foodcritic
parent
57c1a36b
Changes
2
Hide whitespace changes
Inline
Side-by-side
attributes/default.rb
View file @
1fd1b13f
default
[
'ubuntu_base'
][
'locales'
]
=
%w(en_GB.utf8 de_DE.utf8)
default
[
'ubuntu_base'
][
'timezone'
]
=
'Europe/Berlin'
version
=
String
(
`awk '/DISTRIB_RELEASE=/' /etc/lsb-release | sed 's/DISTRIB_RELEASE=//' | sed 's/[.]/./' | tr -d '
\n
'`
)
if
version
===
'16.04'
if
node
[
'platform_version'
]
==
'16.04'
default
[
'locales'
][
'locale_file'
]
=
'/etc/locale.gen'
end
recipes/default.rb
View file @
1fd1b13f
...
...
@@ -23,18 +23,16 @@
# THE SOFTWARE.
data_bag
=
data_bag_item
(
'apps'
,
'global'
)
version
=
String
(
`awk '/DISTRIB_RELEASE=/' /etc/lsb-release | sed 's/DISTRIB_RELEASE=//' | sed 's/[.]/./' | tr -d '
\n
'`
)
#########################
### Update the system ###
#########################
if
version
!=
'16.04'
# apt-get crashes if the directory isn't created before it's execution
directory
'/var/www/html'
do
recursive
true
action
:create
end
# apt-get crashes if the directory isn't created before it's execution
directory
'/var/www/html'
do
recursive
true
action
:create
only_if
{
node
[
'platform_version'
]
!=
'16.04'
}
end
execute
'apt-get -y update'
...
...
@@ -46,7 +44,7 @@ execute 'apt-get -y update'
### Update ruby ###
###################
if
version
===
'16.04'
if
node
[
'platform_
version
'
]
===
'16.04'
package
'ruby'
else
apt_repository
(
'ruby-ng'
)
do
...
...
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