Healthcheck for `consul`.
This commit is contained in:
parent
ccc4f90bac
commit
6315dc759e
|
@ -1,6 +1,12 @@
|
|||
{
|
||||
"service": {
|
||||
"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'
|
||||
group 'root'
|
||||
mode '644'
|
||||
|
||||
only_if '{ node["consul"]["manager"]}'
|
||||
end
|
||||
|
||||
execute 'Reload supervisor' do
|
||||
|
|
Loading…
Reference in New Issue