Skip to content

Scheduled Task isn't updated if the password is changed #216

@rba1-source

Description

@rba1-source

Describe the Bug

If the 'password' field value is updated to a new value, the resource is not reconfigured.

Expected Behavior

The scheduled task should be updated to match the new password value.

Steps to Reproduce

Steps to reproduce the behavior:

  1. include a 'user' and 'password' field
  2. run the puppet configuration to create a scheduled task that uses these credentials to run under
  3. change the password value
  4. rerun the puppet configuration; you'll see that this resource is not updated in the log

Environment

  • Windows Server 2016

Additional Context

The docs do state "This parameter will not be used to determine if a scheduled task is in sync or not because there is no way to retrieve the password used to set the account information for a task." but I don't think this is explicit enough. It would be more helpful if it said in addition something like "The scheduled task configuration will not be updated if you supply a new password value." Additionally, there's no guidance on what to do if you need the scheduled task to be reconfigured if the password does change.

My scenario is that I have a mechanism to supply a new password to the puppet configuration automatically if the password is changed, but when my masterless puppet is then rerun, it doesn't reconfigure my scheduled tasks to use the new password.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions