hw-cookbooks/locale — pull request #8 by ponyfleisch (2014-02-12 08:37:34+00:00)
Title: generates locales before setting them

without this, i got:
[2014-02-12T08:04:29+00:00] ERROR: execute[Update locale] (/var/chef/cache/cookbooks/locale/recipes/default.rb:26:in `from_file') had an error:
execute[Update locale] (locale::default line 26) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '255'
---- Begin output of update-locale LANG=de_CH.utf8 ----
STDOUT:
STDERR: *** update-locale: Error: invalid locale settings: LANG=de_CH.utf8
---- End output of update-locale LANG=de_CH.utf8 ----
Ran update-locale LANG=de_CH.utf8 returned 255
/usr/lib/ruby/vendor_ruby/mixlib/shellout.rb:242:in `invalid!'
/usr/lib/ruby/vendor_ruby/mixlib/shellout.rb:228:in `error!'
/usr/lib/ruby/vendor_ruby/chef/mixin/shell_out.rb:36:in `shell_out!'
/usr/lib/ruby/vendor_ruby/chef/provider/execute.rb:58:in `action_run'
/usr/lib/ruby/vendor_ruby/chef/resource.rb:472:in `run_action'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:49:in `run_action'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:85:in `block (2 levels) in converge'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:85:in `each'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:85:in `block in converge'
/usr/lib/ruby/vendor_ruby/chef/resource_collection.rb:94:in `block in execute_each_resource'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:116:in `call'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:85:in `step'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/usr/lib/ruby/vendor_ruby/chef/resource_collection.rb:92:in `execute_each_resource'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:80:in `converge'
/usr/lib/ruby/vendor_ruby/chef/client.rb:330:in `converge'
/usr/lib/ruby/vendor_ruby/chef/client.rb:163:in `run'
/usr/lib/ruby/vendor_ruby/chef/application/client.rb:254:in `block in run_application'
/usr/lib/ruby/vendor_ruby/chef/application/client.rb:241:in `loop'
/usr/lib/ruby/vendor_ruby/chef/application/client.rb:241:in `run_application'
/usr/lib/ruby/vendor_ruby/chef/application.rb:70:in `run'
/usr/bin/chef-client:25:in `

'
[2014-02-12T08:04:29+00:00] ERROR: Running exception handlers
[2014-02-12T08:04:29+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2014-02-12T08:04:29+00:00] ERROR: Exception handlers complete
[2014-02-12T08:04:29+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-02-12T08:04:29+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[Update locale] (locale::default line 26) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '255'
---- Begin output of update-locale LANG=de_CH.utf8 ----
STDOUT:
STDERR: *** update-locale: Error: invalid locale settings: LANG=de_CH.utf8
---- End output of update-locale LANG=de_CH.utf8 ----
Ran update-locale LANG=de_CH.utf8 returned 255
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.