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 --- services/common.cf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'services') 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:: -- cgit v1.2.3