Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
Sort /etc/hosts entries by fqdn
Browse files Browse the repository at this point in the history
Sam Kottler committed Jun 25, 2014
1 parent 4f5e21e commit a280327
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -205,7 +205,7 @@ GRAPH
chef-vault (>= 0.0.0)
dwradcliffe-dnsimple (>= 0.0.0)
hostname (>= 0.0.0)
rubygems-hosts (0.0.6)
rubygems-hosts (0.0.7)
rubygems-logging (0.0.5)
chef-vault (>= 0.0.0)
rsyslog (>= 0.0.0)
2 changes: 1 addition & 1 deletion cookbooks/rubygems-hosts/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name 'rubygems-hosts'
maintainer 'RubyGems.org ops team'
description 'Configures /etc/hosts with all nodes in the current environment'
version '0.0.6'
version '0.0.7'
2 changes: 1 addition & 1 deletion cookbooks/rubygems-hosts/templates/default/hosts.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
127.0.0.1 localhost

<% @hosts.each do |node| %>
<% @hosts.sort.each do |node| %>
<%= node['ipaddress'] %> <%= node['machinename'] %> <%= node['hostname'] %>
<% end %>

0 comments on commit a280327

Please sign in to comment.