Create puppet module for Ubuntu repository mirror

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

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:

https://github.com/github/puppet-aptmirror - a bit too complex for our needs

https://forge.puppetlabs.com/jtopjian/apt_mirror - 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
Review: https://review.openstack.org/89928

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:
/var/spool/apt-mirror/mirror/us.archive.ubuntu.com/ubuntu

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>
Method: http://us.archive.ubuntu.com/ubuntu
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 https://github.com/jtopjian/puppet-apt_mirror 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
Review: https://review.openstack.org/89928
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.