From 3d491e677f25dd7961a3813e561568f1766b4360 Mon Sep 17 00:00:00 2001 From: Blerim Sheqa Date: Thu, 2 Mar 2017 10:22:08 +0100 Subject: [PATCH] Fix dependencies for Puppet 3 in pki::ca --- manifests/pki/ca.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manifests/pki/ca.pp b/manifests/pki/ca.pp index 0788084fb..0fb9a93b7 100644 --- a/manifests/pki/ca.pp +++ b/manifests/pki/ca.pp @@ -111,6 +111,7 @@ path => $path, command => 'icinga2 pki new-ca', creates => "${ca_dir}/ca.crt", + before => File[$_ssl_cacert_path], notify => Class['::icinga2::service'], } } else { @@ -132,6 +133,7 @@ default => $ca_cert, }, tag => 'icinga2::config::file', + before => File[$_ssl_cacert_path], } file { "${ca_dir}/ca.key": @@ -146,9 +148,9 @@ }, tag => 'icinga2::config::file', } - } -> + } - file { "${_ssl_cacert_path}": + file { $_ssl_cacert_path: source => "${ca_dir}/ca.crt", }