Instruct consul to disable automatic checking for updates.

I am using Consul inside an isolated network, so it cannot connect to the world.

$ journalctl -u consul -f
[...]
Jul 17 18:55:15 jammy consul[3363]: 2022-07-17T18:55:15.044Z [ERROR] agent: Failed to check for updates: error="Get "https://checkpoint-api.hashicorp.com/v1/check/consul?arch=amd64&os=linux&signature=0912e301-5a4e-e51d-b24a-b2a9a7373da5&version=1.12.3": dial tcp: lookup checkpoint-api.hashicorp.com on [::1]:53: read udp [::1]:35291->[::1]:53: read: connection refused"
[...]

Define disable_update_check option to disable automatic checking for updates.

$ echo disable_update_check = true  | sudo tee /etc/consul.d/disable_update_check.hcl
disable_update_check = true

Validate config.

$ sudo -u consul consul validate /etc/consul.d
skipping file /etc/consul.d/consul.env, extension must be .hcl or .json, or config format must be set
bootstrap = true: do not enable unless necessary
Configuration is valid!

Restart service.

$ sudo systemctl restart consul

This option can be defined for Consul and Nomad.

ko-fi