Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Duplicate
-
None
-
None
-
None
-
Windows Server 2019 - 1809 (OS Build 17763.107)
Tested issue on VMware and Dell bare-metal server platform.
-
-
Needs Assessment
-
Needs Assessment
Description
Basic Info
Module Version:
Puppet Version: 6.9.0
OS Name/Version: Windows Server 2019 - 1809 (OS Build 17763.107)
Describe your issue in as much detail as possible...
When attempting to set a service to delayed start using enable => delayed Puppet throws an error. I performed a sanity check on Server 2012 and did not get the error.
Here is the code block for more context:
'windows': { |
package { 'sfxcollector': |
ensure => 'latest', |
provider => 'chocolatey', |
install_options => ['-pre'], |
uninstall_options => ['-r'], |
}
|
service { 'sfxcollector': |
ensure => 'running', |
enable => delayed,
|
}
|
}
|
I spoke with james.pogran in Slack and he suggested I create a ticket.
Desired Behavior:
Notice: /Stage[main]/Sfxcollector/Service[sfxcollector]/enable: current_value 'true', should be 'delayed' (noop)
|
Notice: Class[Sfxcollector]: Would have triggered 'refresh' from 1 event{code}
|
Actual Behavior:
Error: The windows provider can not handle attribute enable
|
Error: /Stage[main]/Sfxcollector/Service[sfxcollector]/enable: change from 'true' to 'delayed' failed: The windows provider can not handle attribute enable
|
Attachments
Issue Links
- relates to
-
PUP-6382 Add "Automatic (delayed start)" as option for Service Resource on Windows
-
- Resolved
-