repo.saltstack.com should support RSYNC
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 I think @UtahDave would be the best to answer this question. Thanks!
+1
+1
+1 it would be much appreciated if available
+1 :)
+1 :)
+1
+1
+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.
+1
+1
+1
ZD-780
+1
+1
+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)
As a workaround: we currently use wget -m to mirror the salt repo(s).
:+1:
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!
Question for this group:
Would it be preferable to have repo.saltstack.com provide rsync rather than the longer rsync.repo.saltstack.com?