Permissions is only on config files.
MODIFY
providers/monitor.rb
providers/monitor.rb
@@ -10,7 +10,7 @@ end
action :add do
Chef::Log.debug "Adding monitoring for #{new_resource.name}"
template ::File.join(yaml_dir, "#{new_resource.name}.yaml") do
- # On Windows Agent v5, set the permissions on files an dirs to Administrators.
+ # On Windows Agent v5, set the permissions on conf files to Administrators.
if node['platform_family'] == 'windows'
unless node['datadog']['agent6']
owner 'Administrators'

Permissions is only on config files.