From b22bb017d6d2d9f52cd8ed4e8b46c117a538c5a7 Mon Sep 17 00:00:00 2001 From: Paul Barton Date: Wed, 3 Jan 2024 09:01:15 -0500 Subject: [PATCH] Fix use_canonical_name directive This is missing a newline char and breaks on recent (12.0.0) puppetlabs-apache: ``` apache2: Syntax error on line 50 of /etc/apache2/apache2.conf: Syntax error on line 6 of /etc/apache2/sites-enabled/25-example.com-443.conf:6: was not closed. ``` This fix is inspired by fb9d1313, it's functionally the same. Adds the missing newline and also adds two spaces for indentation. --- manifests/vhost.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/vhost.pp b/manifests/vhost.pp index ba212b60e..eec1a415e 100644 --- a/manifests/vhost.pp +++ b/manifests/vhost.pp @@ -2946,7 +2946,7 @@ concat::fragment { "${name}-use_canonical_name": target => "${priority_real}${filename}.conf", order => 360, - content => "UseCanonicalName ${use_canonical_name}", + content => " UseCanonicalName ${use_canonical_name}\n", } }