reidmv / reidmv-puppet_run_scheduler

Puppet module to configure scheduled agent runtimes
0 stars 5 forks source link

Support running as a domain user on Windows #1

Closed natemccurdy closed 6 years ago

natemccurdy commented 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

Addming a parameter for user and password 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).