From 4d3a80e3b14c21039eaa58852f0eb4766b5e0e1c Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 26 Jun 2014 15:14:46 +0200 Subject: reorder /etc/hosts now "hostname -f" results in the correct hostname. Fixes #5835 --- puppet/modules/site_config/manifests/hosts.pp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'puppet/modules/site_config/manifests/hosts.pp') diff --git a/puppet/modules/site_config/manifests/hosts.pp b/puppet/modules/site_config/manifests/hosts.pp index 6982d37b..e43ad45e 100644 --- a/puppet/modules/site_config/manifests/hosts.pp +++ b/puppet/modules/site_config/manifests/hosts.pp @@ -10,10 +10,9 @@ class site_config::hosts() { } else { $dns_aliases = $dns['aliases'] } - $my_hostnames = unique(sort(concat( - [$hostname, $domain_hash['full'], $domain_hash['internal']], - $dns_aliases - ))) + $my_hostnames = unique(concat( + $dns_aliases, [$hostname, $domain_hash['full'], $domain_hash['internal']] + )) file { '/etc/hostname': ensure => present, -- cgit v1.2.3