proper way to mirror apt.puppetlabs.com?

1,931 views
Skip to first unread message

Aaron Schaefer

unread,
Jan 5, 2012, 8:46:53 PM1/5/12
to Puppet Users
I am wanting to set up a local mirror of apt.puppetlabs.com, and am a
bit confused by the layout as well as the announcement that was made
in this thread:

http://groups.google.com/group/puppet-users/browse_thread/thread/0786824ea9531fe3/f53c9006843ab8dc

I'm not sure exactly what I should be pulling, as rsync://apt.puppetlabs.com/packages/apt
gets everything, but it seems like a bit of a mess. The top-level
pool/ directory is older than the top-level dists/ directory, but that
seems to be what is recommended in the above thread. If you look just
at the subdirectory ubuntu/ everything is in sync (all updated on Jan
3rd, 2012), however there are a ton of date-specific directories
listed under http://apt.puppetlabs.com/ubuntu/dists/ that seem to have
duplicate information.

I'm hoping that someone will know the proper way to rsync this mirror,
so things are compatible going forward. Thanks!

--
Aaron Bull Schaefer

Adam Gibbins

unread,
Jan 5, 2012, 9:19:06 PM1/5/12
to puppet...@googlegroups.com
The recommendation for mirroring debian repositories is generally to use something like apt-mirror or apt-cacher-ng.  Is there a reason you can't do this?

These work by checking the index (e.g. http://apt.puppetlabs.com/ubuntu/dists/lucid/main/binary-amd64/Packages) and pulling the packages.  You can't walk a HTTP repository, HTTP isn't smart like that.


--
Aaron Bull Schaefer

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.


Aaron Schaefer

unread,
Jan 6, 2012, 12:42:44 AM1/6/12
to Puppet Users
On Jan 5, 6:19 pm, Adam Gibbins <a...@adamgibbins.com> wrote:
> The recommendation for mirroring debian repositories is generally to use
> something like apt-mirror or apt-cacher-ng.  Is there a reason you can't do
> this?


Our local mirror server is running CentOS, so I didn't think apt-
mirror was an option, but it looks like we're using debmirror for
Ubuntu repositories already, so I'll modify our script to add
apt.puppetlabs.com in there as well. Thanks for pointing me in the
right direction...I had just set up rsyncing for yum.puppetlabs.com
without issue and was perplexed by the apt-side of things.

--
Aaron Bull Schaefer

unixdoes

unread,
Feb 2, 2012, 6:42:52 PM2/2/12
to Puppet Users
The rsync instructions elsewhere in the group and on google don't seem
to work for me, and nmapping yum.puppetlabs.com shows only 80/443
open. What's the correct way to mirror the yum repo these days?

Thanks!

Matthew Nicholson

unread,
Feb 4, 2012, 10:35:33 AM2/4/12
to puppet...@googlegroups.com
I use debmirror for apt, reposync for yum (followed by createrepo).
Both work really well (debmirror took a little to get going under
CentOS, but now it works like a charm).

Matt

> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>

--
Matthew Nicholson

Zach Leslie

unread,
Feb 7, 2012, 6:29:20 PM2/7/12
to puppet...@googlegroups.com
When the announcement was made, the rsync configuration was not changed, so the excludes were not in sync with reality. I have just reviewed the settings on the rsync server and tested better excludes. The following command is now working like I expect.

rsync -av --copy-links --del rsync://apt.puppetlabs.com/packages/apt/ apt/

Let me know if this helps you.

--
Zach Leslie :: Puppet Labs :: 503.208.9791

Taher Bohari

unread,
Apr 1, 2015, 11:04:30 AM4/1/15
to puppet...@googlegroups.com
Hello,

I want to mirror puppet packages locally. I am trying to mirror it using "cobbler reposync". 

But I am getting the error as  http://apt.puppetlabs.com/ubuntu/dists/lucid/ is no longer present.

Instead puppet packages are found at  http://apt.puppetlabs.com/dists/ location. Using this path also gives me the error.

Does any one knows how to mirror the puppet packages?

--
Thanks.

Matthaus Owens

unread,
Apr 1, 2015, 5:22:24 PM4/1/15
to Puppet Users
Taher,
The readme (http://apt.puppetlabs.com/README.txt) suggests using
`rsync -av --copy-links --del rsync://apt.puppetlabs.com/packages/apt/
/var/apt/` to mirror the apt repos, which should work.

Hope that helps.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/3fb59986-d04c-45cb-be17-7e8e170770f1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Matthaus Owens
Puppet Labs

PuppetConf 2015 is coming to Portland, Oregon! Join us October 5-9.
Register now to take advantage of the Early Adopter discount —save $349!
Reply all
Reply to author
Forward
0 new messages