summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2020-06-06 12:39:18 +0200
committerJan Dittberner <jandd@cacert.org>2020-06-06 12:39:18 +0200
commit535bab98e2815e4a365883f032656705e96b7be4 (patch)
treeac79ed61d0e244e9627fb1d66aadfcbcebcfa672
parent61a9719162440351634e5b11da33169eb2dae660 (diff)
downloadcacert-puppet-535bab98e2815e4a365883f032656705e96b7be4.tar.gz
cacert-puppet-535bab98e2815e4a365883f032656705e96b7be4.tar.xz
cacert-puppet-535bab98e2815e4a365883f032656705e96b7be4.zip
Fix require directive
The certificate chain constructed by the x509cert_common profile is of type Concat and needs to be referenced as such.
-rw-r--r--sitemodules/profiles/manifests/nginx_revproxy.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sitemodules/profiles/manifests/nginx_revproxy.pp b/sitemodules/profiles/manifests/nginx_revproxy.pp
index 8bc4f94..ed34b2f 100644
--- a/sitemodules/profiles/manifests/nginx_revproxy.pp
+++ b/sitemodules/profiles/manifests/nginx_revproxy.pp
@@ -67,9 +67,9 @@ class profiles::nginx_revproxy (
'custom_config' => $virtual_host['custom_config'],
}
),
- require => File[
- "/etc/ssl/public/${vhost}.chain.pem",
- "/etc/ssl/private/${vhost}.key.pem",
+ require => [
+ Concat["/etc/ssl/public/${vhost}.chain.pem"],
+ File["/etc/ssl/private/${vhost}.key.pem"],
],
notify => Service['nginx'],
} -> file { "/etc/nginx/sites-enabled/${vhost}":