Skip to content

datadog_agent::service_enable should accept "delayed" as a parameter (Windows) #754

@tlimoncelli

Description

@tlimoncelli

On Windows systems, we would like to delay the start of the datadog agent service (in Windows terms, we want to set the service to "Start delayed"). (If you are wondering why: we have some network NICs that take extra long to come up due to LACP bonding.)

We thought this could be done by setting this in hiera:

datadog_agent::service_enable: delayed

However we get an error:

Class[Datadog_agent::Service]: parameter 'service_enable' expects a Boolean value,
got String (file: [redacted]/datadog_agent/manifests/init.pp, line: 494, column: 3)

I see in manifests/service.pp $service_enable is required to be a Boolean. As you can see,
https://puppet.com/docs/puppet/7/types/service.html#service-attribute-enable "delayed" is a valid value for this parameter.

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