Commit 9ae7d0f9 authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[TASK] Replace locales package with some basic shell code

parent 015f2b76
......@@ -13,7 +13,6 @@ depends 'apt'
depends 'build-essential'
depends 'git'
depends 'rsync'
depends 'locales'
depends 'ssh_known_hosts'
depends 'timezone_lwrp'
depends 'vim'
\ No newline at end of file
......@@ -55,7 +55,6 @@ timezone node['ubuntu_base']['timezone']
### Add some additional recipes ###
###################################
include_recipe 'locales'
include_recipe 'ssh_known_hosts'
########################################
......@@ -94,14 +93,12 @@ end
### Install cachefilesd to improve the NFS performance ###
##########################################################
package 'cachefilesd' do
action :install
end
package 'cachefilesd'
file '/etc/default/cachefilesd' do
content <<-EOf
content <<-EOF
RUN=yes
EOf
EOF
action :create
mode 0755
end
......@@ -145,9 +142,12 @@ end
### Add locales ###
###################
locales 'Add locales' do
locales node['ubuntu_base']['locales']
execute "rm /etc/locale.gen"
execute "dpkg-reconfigure --frontend noninteractive locales"
node['ubuntu_base']['locales'].each do |locale|
execute "echo \"#{locale} UTF-8\" | tee -a /etc/locale.gen"
end
execute "locale-gen"
################
### Add Logo ###
......
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