Skip to content

Commit c23aae5

Browse files
committed
Give Administrator group access explicitly
On Windows, Administrator doesn't have access to every file, and if we remove access to the Administrator user or group, we lock ourself out of the file. In other places this is already taken into account and explicitly set, but here we were using the default value for mode. The default worked well in previous tests, but I run into the lock out problem on a test using Windows 2008 with puppet 6.10, so better make this explicit here too.
1 parent afdbe34 commit c23aae5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

manifests/init.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,7 @@
742742
file { 'C:/ProgramData/Datadog/datadog.yaml':
743743
owner => $dd_user,
744744
group => 'S-1-5-32-544', #Administrators
745+
mode => '0660',
745746
content => template('datadog_agent/datadog6.yaml.erb'),
746747
notify => Service[$datadog_agent::params::service_name],
747748
require => File['C:/ProgramData/Datadog'],

0 commit comments

Comments
 (0)