Create puppet module for Ubuntu repository mirror

Bug #1311855 reported by Elizabeth K. Joseph
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
In Progress

Bug Description

Currently the team uses the vendor's cache/mirrors for Ubuntu updates, but we may want to run our own some time in the future.

TripleO wants this now, so we should write a module for puppet to include in /config so we can use it when we're ready to.

Changed in openstack-ci:
assignee: nobody → Elizabeth Krumbach Joseph (lyz)
Revision history for this message
Elizabeth K. Joseph (lyz) wrote :

Looked into ubumirror, but it's not fine-tuned enough for our needs.

I think we should go with apt-mirror, there are a couple modules out there: - a bit too complex for our needs - testing now, may work for us

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to config (master)

Fix proposed to branch: master

Changed in openstack-ci:
status: New → In Progress
Revision history for this message
Elizabeth K. Joseph (lyz) wrote :

It would help a lot if I could get some eyes on my change vs the jtopjian/apt_mirror so we can review our options.

Revision history for this message
Mathieu Gagné (mgagne) wrote :

reprepro is an other mirroring tool I use.

I prefer it over apt-mirror as apt-mirror creates a whole bunch of folders based on the mirror URL:

This wasn't what we needed.

Example of a reprepro configuration:

# /srv/mirrors/ubuntu/conf/distributions
Codename: precise
Description: Ubuntu Precise
Architectures: amd64 i386 source
Components: main restricted universe multiverse
Update: ubuntu-precise

# /srv/mirrors/ubuntu/conf/updates
Name: ubuntu-precise
#VerifyRelease: <mirror-key-here>
Suite: precise
Components: main restricted universe multiverse
Architectures: amd64 i386 source

To initialize the mirror directory structure:

    reprepro -b /srv/mirrors/ubuntu -V export

To start the mirror update process:

    reprepro -b /srv/mirrors/ubuntu -V update precise

Unfortunately, we don't use a puppet module (yet) for that one.

Revision history for this message
Aaron Greengrass (aaron-t) wrote :

I use a module very similar to with much success, using apt-mirror also handles situations where the operation fails midway and needs to re-run later, without corruption.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on system-config (master)

Change abandoned by Elizabeth K. Joseph (<email address hidden>) on branch: master
Reason: Very out-dated at this point. Can revisit with existing Puppet module from the community or one of our own if needed at a later date.

Changed in openstack-ci:
assignee: Elizabeth K. Joseph (lyz) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.