How to configure Livepatch client

Livepatch client can be configured using the CLI or its configuration file at /var/snap/canonical-livepatch/common/config.

CLI Configuration

Show the current configuration:

canonical-livepatch config

Change one or more settings:

canonical-livepatch config http-proxy="1.2.3.4" https-proxy="1.2.3.4"
canonical-livepatch config remote-server="https://example.livepatch.canonical.com"

Clear one or more settings:

canonical-livepatch config remote-server=

Change settings, reading a long, multi-line value from stdin:

canonical-livepatch config remote-server=https://2.3.4.5 ca-certs=@stdin < chain.pem

YAML Configuration

Livepatch client can also be configured by editing /var/snap/canonical-livepatch/common/config. The file is YAML-formatted. In order for changes to the file to take affect you must restart the daemon:

sudo snap restart canonical-livepatch