summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorJulien Dessaux2018-03-15 18:10:06 +0100
committerJulien Dessaux2018-03-15 18:21:12 +0100
commit18bd9b07b06d45891dd5bf1a46633579850e5e62 (patch)
treeb8e0125cfb82d8649a6c8f814bd14f72b1c0e8ee /services
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--services/common.cf6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/common.cf b/services/common.cf
index d315c6a..de738a8 100644
--- a/services/common.cf
+++ b/services/common.cf
@@ -3,9 +3,11 @@ bundle agent common
files:
any::
"/etc/hosts"
- edit_defaults => std_defs,
+ create => "true",
+ edit_defaults => empty,
perms => system_owned("444"),
- copy_from => local_dcp("$(sys.inputdir)/templates/common/hosts.cftpl"),
+ edit_template => "$(sys.inputdir)/templates/common/hosts.cftpl",
+ template_method => "cfengine",
classes => if_repaired("common_hosts_files_repaired");
reports:
any::