Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rba1-source opened this issue Sep 21, 2022 · 0 comments
Open

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

rba1-source opened this issue Sep 21, 2022 · 0 comments

Comments

@rba1-source
Copy link

rba1-source commented Sep 21, 2022

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.

@rba1-source rba1-source changed the title Scheduled Task isn't updated is the password is changed Scheduled Task isn't updated if the password is changed Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants