From 18bd9b07b06d45891dd5bf1a46633579850e5e62 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 15 Mar 2018 18:10:06 +0100 Subject: Fixed fqdn missing from /etc/hosts --- templates/common/hosts.cftpl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'templates/common') diff --git a/templates/common/hosts.cftpl b/templates/common/hosts.cftpl index 23342fd..0b34717 100644 --- a/templates/common/hosts.cftpl +++ b/templates/common/hosts.cftpl @@ -1,9 +1,13 @@ +[%CFEngine BEGIN %] ############################################################################### # \_o< WARNING : This file is being managed by cfengine! >o_/ # # ~~~~ ~~~~ # ############################################################################### 127.0.0.1 localhost +[%CFEngine has_host_data:: %] +$(sys.ipv4) $(sys.uqhost).$(g.host_data[domain]) $(sys.uqhost) +[%CFEngine any:: %] ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix @@ -13643,3 +13647,4 @@ ff02::2 ip6-allrouters # kwadronaut for Windows 7 and Vista information # John Mueller and Lawrence H Smith for Mac Pre-OSX information # Jesse Baird for the Cisco IOS script +[%CFEngine END %] -- cgit v1.2.3