Model config: `apt-mirror`

Configuration > List of model configuration keys > apt-mirror

This document describes the apt-mirror model configuration key.

Key Type Default Valid values Purpose
apt-mirror string “” The APT mirror for the model.

The APT packaging system is used to install and upgrade software on machines provisioned in the model, and many charms also use APT to install software for the applications they deploy. It is possible to set a specific mirror for the APT packages to use, by setting ‘apt-mirror’:

juju model-config apt-mirror=http://archive.ubuntu.com/ubuntu/

To restore the default behaviour you would run:

juju model-config --reset apt-mirror

The apt-mirror option is often used to point to a local mirror. The Working offline page covers mirrors, proxies, and other aspects related to network-restricted environments.