You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good day. I am using this cookbook on Windows Server 2012 R2 to install consul agents and apply service definitions. Definition notifies consul service to restart of course. Reload is not working on Windows (which is expected).
consul_definition "production-device-service" do
type 'service'
parameters(
address: node['ipaddress'],
token: <token>,
check: {
interval: '30s',
timeout: '29s',
http: "http://localhost/api/healthcheck/fast"
}
)
notifies :restart, "consul_service[#{node['consul']['service_name']}]", :delayed
end
But during converge (no matter kitchen or actual nodes) nothing happens, service is not restarted and definitions are not updated. A piece from log with debug level:
[2016-06-30T08:02:30-07:00] INFO: consul_definition[production-device-service] sending restart action to consul_service[consul] (delayed)
Recipe: base::windows
* consul_service[consul] action restart[2016-06-30T08:02:30-07:00] INFO: Processing consul_service[consul] action restart (base::windows line 69)
[2016-06-30T08:02:30-07:00] DEBUG: Providers for generic consul_service resource enabled on node include: [ConsulCookbook::Provider::ConsulServiceWindows, ConsulCookbook::Provider::ConsulService]
[2016-06-30T08:02:30-07:00] DEBUG: Provider for action restart on resource consul_service[consul] is ConsulCookbook::Provider::ConsulServiceWindows
[2016-06-30T08:02:30-07:00] DEBUG: Resources for generic powershell_script resource enabled on node include: [Chef::Resource::PowershellScript]
[2016-06-30T08:02:30-07:00] DEBUG: Resource for powershell_script is Chef::Resource::PowershellScript (up to date)
It should simply execute powershell script restart-service consul. If I do this manually after, definitions are updated.
The text was updated successfully, but these errors were encountered:
Good day. I am using this cookbook on Windows Server 2012 R2 to install consul agents and apply service definitions. Definition notifies consul service to restart of course. Reload is not working on Windows (which is expected).
But during converge (no matter kitchen or actual nodes) nothing happens, service is not restarted and definitions are not updated. A piece from log with debug level:
It should simply execute powershell script
restart-service consul
. If I do this manually after, definitions are updated.The text was updated successfully, but these errors were encountered: