From 1475030834c8a957d1704058e08668bf82bbd9d5 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Mon, 29 Feb 2016 00:24:28 +0000 Subject: Use fqdn as hostname rather than localhost --- deployment/common/manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'deployment/common') diff --git a/deployment/common/manifests/init.pp b/deployment/common/manifests/init.pp index e17f02d8..2a82cd1c 100644 --- a/deployment/common/manifests/init.pp +++ b/deployment/common/manifests/init.pp @@ -20,9 +20,9 @@ class common { ensure => directory } - host { 'localhost': + host { "${::hostname}.${::domain}": ip => '127.0.0.1', - host_aliases => [ "${::hostname}", "${::hostname}.${::domain}" ], + host_aliases => [ "${::hostname}", 'localhost' ], } } -- cgit v1.2.1