chef / chef

Chef Infra, a powerful automation platform that transforms infrastructure into code automating how infrastructure is configured, deployed and managed across any environment, at any scale
http://www.chef.io/chef/
Apache License 2.0
7.6k stars 2.51k forks source link

windows_service action :start resets credentials on service #8080

Closed gdoddsy closed 5 years ago

gdoddsy commented 5 years ago

Description

When we run the following in a recipe it resets the credentials on the service to Local System

windows_service 'myServiceName' do
    action :start
    only_if { ::Win32::Service.exists?("myServiceName")}
end

Chef Version

14.7.17

Platform Version

Windows 2016

Replication Case

Whenever we use windows_service with action :start it replaces the credentials the service runs as with Local System.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.