We added support for managing the logon user and password to the windows service provider, but it's not reflected in the documentation for the provider. We should add an example to the description: https://github.com/puppetlabs/puppet/blob/96029b003cfbb5303426cbc110f350a0d4b6af06/lib/puppet/provider/service/windows.rb#L5-L12
service { 'name-of-service':
ensure => 'running',
enable => 'true',
logonaccount => 'domain\\user',
logonpassword => $password,
}
I'll add an example to the end of here: https://puppet.com/docs/puppet/7.0/resources_service.html#service_windows
Maybe something like the following?:
Puppet 7 adds support for managing the logon user and password to the Windows service provider. For example:
Hi Claire,
The change was added into Puppet 6.17, so please can the notes reflect this? I have it working in Puppet 6.19.
Please can you also detail that logonpassword is a sensitive variable.
Thanks,
Darren