Sign inSign up

mrlesmithjr/apt-mirror

By mrlesmithjr

•Updated almost 7 years ago

Ubuntu Apt-Mirror. Repos not populated (Updated w/cron schedule - default schedule is daily).

Image
0

10K+

mrlesmithjr/apt-mirror repository overview

Table of Contents generated with DocToc⁠

⁠ansible-apt-mirror

Installs and configures apt-mirror (Local APT Repository). Also configures clients if extra-var passed.

⁠Requirements

Lot's of disk space required for repos...At the time of putting this together Ubuntu Trusty w/defaults in this role requires 139GB+

Install Ansible role requirements:

sudo ansible-galaxy install -r requirements.yml -f

⁠Vagrant

Spin up Environment under Vagrant to test.

vagrant up

⁠Docker

Spin up Docker container (apt mirror repos not populated...will update on cron schedule)

docker run -d -p 80:80 --name apt-mirror mrlesmithjr/apt-mirror

To immediately update cache (Will take a long time...so do not cancel)

docker exec -it apt-mirror apt-mirror

⁠Role Variables

defaults/main.yml⁠

⁠Dependencies

ansible-apache2 and mrlesmithjr.apache2 (Installed as part of requirements.yml)

⁠Example Playbook

- hosts: servers
  roles:
    - role: ansible-apache2
    - role: ansible-apt-mirror

- hosts: clients
  roles:
    - { role: ansible-apt-mirror, apt_mirror_client: true }

⁠License

MIT

⁠Author Information

Larry Smith Jr.

Tag summary

Content type

Image

Digest

Size

161.4 MB

Last updated

almost 7 years ago

docker pull mrlesmithjr/apt-mirror