Stephen Wallace
2014-Oct-02 06:00 UTC
[Puppet Users] Windows woes.....how to send a refresh event to an array of services, with one service depending on one other?
Hi,
I'm using PE 3.1.1 on Win2k8R2.
I'm sending a refresh event to a class containing this declaration.....
service { ['Sentinel RMS License Manager', 'Micro Focus XDB
Server for
ETD 2.2', 'Micro Focus CES daemon']:
ensure => 'running',
enable => 'true',
}
This results in the follow Windows error embedded in the puppet debug
output.....
*****
Error: /Stage[main]/Mf_ent_test_server::Init2/Service[Sentinel RMS License
Manager]: Cannot stop Sentinel RMS License Manager, error was: Execution of
'C:/Windows/system32/net.exe stop Sentinel RMS License Manager' returned
4294967295: The following services are dependent on the Sentinel RMS
License Manager service.
Stopping the Sentinel RMS License Manager service will also stop these
services.
Micro Focus CES daemon
Do you want to continue this operation? (Y/N) [N]:
No valid response was provided.
******
i.e. To refresh the License Manager, I also need to refresh "Micro Focus
CES daemon"
I suppose chaining each service in turn ensure => stopped, then chaining
each again ensure => running would do the trick. Bit messy however.
Any ideas on this one would be appreciated. Lovin' Windoze.....(probably!)
Regs
Stephen
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/4a13d87f-1563-4994-a24e-322146eac348%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.