- From: "Moser, Kevin" <
>
- To: "
" <
>
- Subject: [chef] Re: Re: Re: Modifying Windows Service Logon As
- Date: Tue, 7 Jan 2014 16:07:09 +0000
- Accept-language: en-US
We just use chef-vault (I know shameless plug) to manage the password.
From: David Petzel
<
<mailto:
>>
Reply-To:
"
<mailto:
>"
<
<mailto:
>>
Date: Monday, January 6, 2014 7:25 PM
To:
"
<mailto:
>"
<
<mailto:
>>
Subject: [chef] Re: Re: Modifying Windows Service Logon As
The logonas_user is relatively easy to account for via the registry provider
(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\<service_name>\ObjectName).
The logonas_password is a whole other story and is something we have yet to
figure out a solution to on our end as well.
The challenge we've hit is its easy to "create" the service with the proper
password, however managing that in the event of a password change is
problematic. It would be great if the provider you've started could make it
into the community cookbook with support for managing the password. I just
noticed that there is some password logic that I don't fully understand at
https://github.com/opscode/chef/blob/master/lib/chef/util/windows/net_user.rb#L125.
I'm curious if that same logic could used for the service account password?
On Mon, Jan 6, 2014 at 6:07 PM, James Kessler
<
<mailto:
>>
wrote:
I added a resource to the Windows cookbook to create/delete services. I'm not
sure about the "Log On As" parameter but this should get you started:
https://github.com/jkess/windows/blob/service/providers/service.rb
Archive powered by MHonArc 2.6.16.