Healthcheck for `consul`.
This commit is contained in:
parent
ccc4f90bac
commit
6315dc759e
|
@ -1,6 +1,12 @@
|
||||||
{
|
{
|
||||||
"service": {
|
"service": {
|
||||||
"name": "consul",
|
"name": "consul",
|
||||||
"port": 8600
|
"port": 8600,
|
||||||
|
"check":{
|
||||||
|
"tcp": "localhost:8600",
|
||||||
|
"interval": "60s",
|
||||||
|
"timeout": "1s",
|
||||||
|
"success_before_passing": 3
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,8 +21,6 @@ remote_file '/etc/consul.d/service-consul.json' do
|
||||||
owner 'root'
|
owner 'root'
|
||||||
group 'root'
|
group 'root'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
only_if '{ node["consul"]["manager"]}'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
execute 'Reload supervisor' do
|
execute 'Reload supervisor' do
|
||||||
|
|
Loading…
Reference in New Issue