diff options
author | elijah <elijah@riseup.net> | 2013-07-10 21:45:51 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-07-10 21:45:51 -0700 |
commit | 0e7b47380edb2af6683a0cdc871eaa60a4101f5c (patch) | |
tree | 35ec2e9f03d61600ccb77a41973581f40d3ae1c9 /puppet | |
parent | 672154a8322901b86c9882854234eae53221a38e (diff) |
ensure that /etc/hosts is output deterministically, so that content does not change each time you deploy.
Diffstat (limited to 'puppet')
-rw-r--r-- | puppet/modules/site_config/templates/hosts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/puppet/modules/site_config/templates/hosts b/puppet/modules/site_config/templates/hosts index 2c784b05..c0a2740f 100644 --- a/puppet/modules/site_config/templates/hosts +++ b/puppet/modules/site_config/templates/hosts @@ -4,7 +4,8 @@ 127.0.1.1 <%= @hostname %>.<%= @domain_public %> <%= @hostname %> <%- if @hosts then -%> -<% @hosts.each do |name, props| -%> +<% @hosts.keys.sort.each do |name| -%> +<%- props = @hosts[name] -%> <%= props["ip_address"] %> <%= props["domain_full"] %> <%= props["domain_internal"] %> <%= name %> <% end -%> <% end -%> |