# /etc/environment
#
# DO NOT CHANGE THIS FILE MANUALLY!
#
# This file is managed by the Chef `sys` cookbook.

<% node['sys']['env'].each_pair do |key,value| %>
<% raise "Whitespace in environment variable name" if key =~ /\s/ %>
<%= key %>="<%= value %>"
<% end %>

# /etc/environment
#
# DO NOT CHANGE THIS FILE MANUALLY!
#
# This file is managed by the Chef `sys` cookbook.

<% node['sys']['env'].keys.sort_by(&:downcase) do |key| %>
<% raise "Whitespace in environment variable name" if key =~ /\s/ %>
<%= key %>="<%= node['sys']['env'][key] %>
<% end %>

Sort lines in /etc/environment ignoring case
Sort lines in /etc/environment ignoring case
