From 2a7c96978e9aa81c48cc38c6201d13f4a1f0768e Mon Sep 17 00:00:00 2001 From: Lennart Betz Date: Fri, 8 Nov 2024 08:41:04 +0100 Subject: [PATCH] fix #796 broken file permissions on Windows --- manifests/install.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/manifests/install.pp b/manifests/install.pp index 577ec2ed..93646746 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -16,6 +16,12 @@ $user = $icinga2::globals::user $group = $icinga2::globals::group + if $facts['kernel'] != 'windows' { + $file_mode = '0750' + } else { + $file_mode = undef + } + if $manage_packages { if $facts['os']['family'] == 'windows' { Package { provider => chocolatey, } } @@ -37,7 +43,7 @@ ensure => directory, owner => $user, group => $group, - mode => '0750', + mode => $file_mode, ; $conf_dir: seltype => 'icinga2_etc_t',