Skip to content

Commit 0795d36

Browse files
binford2ktruthbk
authored andcommitted
Allow the report processor to run on PE
The PE puppetserver runs as `pe-puppet`, not `puppet`. The `$settings::user` variable resolves to the user that the Puppet Master node is configured to run as. This patch assumes that you are either enforcing as the agent on the Puppet Master node, or that if you're enforcing on a compile master that it will be the same as the Master of Masters.
1 parent 1e2a1cd commit 0795d36

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

manifests/init.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
# Will send results from your puppet agent runs back to the datadog service.
2525
# $puppetmaster_user
2626
# Will chown the api key used by the report processor to this user.
27+
# Defaults to the user the puppetmaster is configured to run as.
2728
# $non_local_traffic
2829
# Enable you to use the agent as a proxy. Defaults to false.
2930
# See https://github.com/DataDog/dd-agent/wiki/Proxy-Configuration
@@ -185,7 +186,7 @@
185186
$facts_to_tags = [],
186187
$puppet_run_reports = false,
187188
$puppet_gem_provider = 'puppetserver_gem',
188-
$puppetmaster_user = 'puppet',
189+
$puppetmaster_user = $settings::user,
189190
$non_local_traffic = false,
190191
$dogstreams = [],
191192
$log_level = 'info',

0 commit comments

Comments
 (0)