summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
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 %]