Jira (PUP-10800) Add logonaccount and logonpassword to windows service provider example

15 views
Skip to first unread message

Josh Cooper (Jira)

unread,
Dec 3, 2020, 12:35:03 PM12/3/20
to puppe...@googlegroups.com
Josh Cooper created an issue
 
Puppet / Task PUP-10800
Add logonaccount and logonpassword to windows service provider example
Issue Type: Task Task
Assignee: Claire Cadman
Components: Docs
Created: 2020/12/03 9:34 AM
Priority: Normal Normal
Reporter: Josh Cooper

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,
}

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Mihai Buzgau (Jira)

unread,
Dec 4, 2020, 10:27:03 AM12/4/20
to puppe...@googlegroups.com
Mihai Buzgau assigned an issue to Unassigned
Change By: Mihai Buzgau
Assignee: Claire Cadman

Mihai Buzgau (Jira)

unread,
Dec 4, 2020, 10:27:04 AM12/4/20
to puppe...@googlegroups.com

Claire Cadman (Jira)

unread,
Dec 4, 2020, 11:16:02 AM12/4/20
to puppe...@googlegroups.com
Claire Cadman commented on Task PUP-10800
 
Re: Add logonaccount and logonpassword to windows service provider example

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:

service { 'name-of-service':
  ensure              => 'running',
  enable              => 'true', 
  logonaccount   => 'domain\\user', 
  logonpassword => $password,
}

Claire Cadman (Jira)

unread,
Dec 4, 2020, 11:17:04 AM12/4/20
to puppe...@googlegroups.com

Darren Gipson (Jira)

unread,
Dec 7, 2020, 9:33:03 AM12/7/20
to puppe...@googlegroups.com
Darren Gipson commented on Task PUP-10800
 
Re: Add logonaccount and logonpassword to windows service provider 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

Claire Cadman (Jira)

unread,
Dec 7, 2020, 10:32:02 AM12/7/20
to puppe...@googlegroups.com

Claire Cadman (Jira)

unread,
Dec 7, 2020, 10:32:03 AM12/7/20
to puppe...@googlegroups.com

Claire Cadman (Jira)

unread,
Dec 7, 2020, 10:32:04 AM12/7/20
to puppe...@googlegroups.com
Claire Cadman updated an issue
Change By: Claire Cadman
Sprint: Triaged tickets 2020.12.08-12.18
Reply all
Reply to author
Forward
0 new messages