Closed natemccurdy closed 6 years ago
It's common to run the Puppet agent as a domain user on Windows.
Right now, the module has this hard coded to be system: https://github.com/reidmv/reidmv-puppet_run_scheduler/blob/2f0875ec0aaff530ab3bc051bdf0877a1260a916/manifests/windows.pp#L21
system
Addming a parameter for user and password and plumbing it down to the scheduled task should do the trick.
user
password
It would also be good to support the Sensitive type for the password (assuming that scheduled_task supports that which I'm not sure it does).
scheduled_task
It's common to run the Puppet agent as a domain user on Windows.
Right now, the module has this hard coded to be
system
: https://github.com/reidmv/reidmv-puppet_run_scheduler/blob/2f0875ec0aaff530ab3bc051bdf0877a1260a916/manifests/windows.pp#L21Addming a parameter for
user
andpassword
and plumbing it down to the scheduled task should do the trick.It would also be good to support the Sensitive type for the password (assuming that
scheduled_task
supports that which I'm not sure it does).