Skip to content

system probe does not honor non-default windows userΒ #804

@shbakesas

Description

@shbakesas

Attempting to install NPM on some DCs where we have configured a GMSA. The system_probe module uses the default dd_user from params.pp. It does not account for the $windows_ddagentuser_name variable in init.pp if it is set.

params.pp should be updated to detect if $windows_ddagentuser_name is set, and if so use that value in params for other modules to call.

The current behavior causes the module to fail because when it goes to set permissions on the system-probe.yaml file, it's attempting to use a user that does not exist instead of the user passed to the class in $windows_ddagentuser_name.

Error: Could not find user ddagentuser
Error: /Stage[main]/Datadog_agent::System_probe/File[C:/ProgramData/Datadog/system-probe.yaml]/owner: change from 'BUILTIN\Administrators' to 'ddagentuser' failed: Could not find user ddagentuser (corrective)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions