diff --git a/manifests/r10k/webhook.pp b/manifests/r10k/webhook.pp index 26d5a41..be78c05 100644 --- a/manifests/r10k/webhook.pp +++ b/manifests/r10k/webhook.pp @@ -25,6 +25,15 @@ class puppet_cd::r10k::webhook ( seluser => system_u, } + # create the log file + file { '/var/log/r10k-webhook.log': + ensure => file, + owner => 'puppet', + group => 'puppet', + mode => '0644', + require => File['/opt/r10k-webhook'], + } + # create the requirements file file { $pt_r10k_req_file: ensure => file, @@ -36,7 +45,7 @@ class puppet_cd::r10k::webhook ( seltype => puppet_etc_t, seluser => system_u, content => template($pt_r10k_req_erb), - require => File['/opt/r10k-webhook'], + require => File['/var/log/r10k-webhook.log'], } # create the binary file