salt icon indicating copy to clipboard operation
salt copied to clipboard

repo.saltstack.com should support RSYNC

Open ianare opened this issue 11 years ago • 32 comments

Our internal servers have (rightly) no Internet access. We've been mirroring the EPEL repo but would like to use the official packages instead.

Could you enable RSYNC on repo.saltstack.com? Otherwise we will do via HTTP which will waste everyone's bandwidth :-(

rsync -avz repo.saltstack.com::yum/rhel7/ test
rsync: failed to connect to repo.saltstack.com (198.199.77.106): Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(128) [Receiver=3.1.0]

Thank you!

ianare avatar Nov 26 '15 11:11 ianare

@ianare I think @UtahDave would be the best to answer this question. Thanks!

justinta avatar Nov 30 '15 15:11 justinta

+1

edgan avatar Dec 04 '15 18:12 edgan

+1

oznah avatar Dec 14 '15 18:12 oznah

+1 it would be much appreciated if available

jremond avatar Dec 15 '15 23:12 jremond

+1 :)

titilambert avatar Dec 16 '15 03:12 titilambert

+1 :)

windoverwater avatar Jan 06 '16 18:01 windoverwater

+1

c4t3l avatar Jan 31 '16 00:01 c4t3l

+1

Jerry-Fix avatar Feb 03 '16 07:02 Jerry-Fix

+1

rsync support would be huge. reposync keeps puking all over the place trying to mirror things. I'm sure the Salt team prefers we have local mirrors instead of having 10's if not 100's of thousands of hosts update direct.

scoobydooxp avatar Feb 12 '16 18:02 scoobydooxp

+1

FerrySchuller avatar Apr 19 '16 11:04 FerrySchuller

+1

lorengordon avatar Apr 19 '16 14:04 lorengordon

+1

damon-atkins avatar May 16 '16 15:05 damon-atkins

ZD-780

rickh563 avatar May 19 '16 20:05 rickh563

+1

curiositycasualty avatar Jun 11 '16 01:06 curiositycasualty

+1

rmrf avatar Jun 12 '16 04:06 rmrf

+1 for enabling rsync support

Any insights available whether this is going to make it anytime soon or that it will be someday in the (far) future? (being an outsider, I'm not sure what to think of milestone "C 8", as its due date is almost there, but there is also a lot still to do for that milestone as it seems)

danny-smit avatar Jun 23 '16 15:06 danny-smit

As a workaround: we currently use wget -m to mirror the salt repo(s).

curiositycasualty avatar Jun 23 '16 17:06 curiositycasualty

:+1:

arthtux avatar Jul 06 '16 14:07 arthtux

OK, thank you for your patience, everyone. We now have rsync available at rsync.repo.saltstack.com. This rsync matches the contents of repo.saltstack.com exactly.

You can list the available modules like this:

[boucha@elsapo test]$ rsync rsync://rsync.repo.saltstack.com

saltstack_pkgrepo_full  Contents of repo.saltstack.com
saltstack_pkgrepo_debian    SaltStack Debian repo
saltstack_pkgrepo_ubuntu    SaltStack Ubuntu repo
saltstack_pkgrepo_rhel  SaltStack RHEL repo
saltstack_pkgrepo_freebsd   SaltStack FreeBSD repo
saltstack_pkgrepo_opensuse  SaltStack OpenSUSE repo
saltstack_pkgrepo_windows   SaltStack Windows repo
saltstack_pkgrepo_osx   SaltStack OS X repo

The saltstack_pkgrepo_full module will give you an exact copy of the entire contents at repo.saltstack.com. The other modules such as saltstack_pkgrepo_ubuntu provide just the subsection of the repo indicated in the name.

To get a clone of the entire repo.saltstack.com in a directory named fullrepo in your current working directory you can run the following command:

rsync -vaH --numeric-ids --delete --delete-after --delay-updates rsync://rsync.repo.saltstack.com/saltstack_pkgrepo_full ./fullrepo

I've posted this information here in the hopes that we could get some feedback and testing before making a public announcement.

Thanks so much!

UtahDave avatar Jul 06 '16 19:07 UtahDave

Question for this group:

Would it be preferable to have repo.saltstack.com provide rsync rather than the longer rsync.repo.saltstack.com?

UtahDave avatar Jul 19 '16 22:07 UtahDave