apt mirror #2

Supports: bionic
Add to new model

Description

A small tool that provides ability to mirror any parts (or even all) of Debian and Ubuntu GNU/Linux distributions or any other apt sources which typically provided by open source developers.


Apt Mirror

Description

A small tool that provides ability to mirror any parts (or even all) of Debian and Ubuntu GNU/Linux distributions or any other apt sources which typically provided by open source developers.

Usage

The charm can be deployed using juju:

juju deploy cs:apt-mirror

Developing

Create and activate a virtualenv, and install the development requirements,

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements-dev.txt

Testing

Just run run_tests:

./run_tests

Configuration

architecture
(string) Architecture(s) to mirror.
amd64
base-path
(string) Repository base path.
/var/spool/apt-mirror
cron-schedule
(string) The cron tab time entry for automatic synchronisation.
None
mirror-list
(string) A list of repositories to mirror.
deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
threads
(int) Number of download threads.
20