summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJulien Dessaux2018-03-15 18:10:06 +0100
committerJulien Dessaux2018-03-15 18:21:12 +0100
commit18bd9b07b06d45891dd5bf1a46633579850e5e62 (patch)
treeb8e0125cfb82d8649a6c8f814bd14f72b1c0e8ee /templates
parentcosmetics (diff)
downloadmasterfiles-18bd9b07b06d45891dd5bf1a46633579850e5e62.tar.gz
masterfiles-18bd9b07b06d45891dd5bf1a46633579850e5e62.tar.bz2
masterfiles-18bd9b07b06d45891dd5bf1a46633579850e5e62.zip
Fixed fqdn missing from /etc/hosts
Diffstat (limited to '')
-rw-r--r--templates/common/hosts.cftpl5
1 files changed, 5 insertions, 0 deletions
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 %]