View previous topic :: View next topic |
Author |
Message |
turtles Veteran
Joined: 31 Dec 2004 Posts: 1655
|
Posted: Mon Oct 11, 2010 12:37 am Post subject: How to set up rsyncd.conf to make bin packages available? |
|
|
I have a directory full of bin packages how to I serve them locally with rsyncd as the up to date packages for some clients?
Background: I have some server(s) and laptop(s) I am thinking of tethering to a test/build laptop.
exact same arch and make.conf other than the X use flag.
My understanding is the X use flag does not decrease server performance so I am willing to accept the X use flag on the server rather than having to maintain 3 boxes with custom ebuilds and deal with all these g-cpan issues on each box.
I have set up rsyncd and a packages directory available over http.
How to I force the server(s) to just see the bin packages as the most up to date? _________________ Donate to Gentoo |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21630
|
Posted: Mon Oct 11, 2010 4:00 am Post subject: |
|
|
Using rsync is not necessarily the easiest way to do this. If you can have near constant connectivity, an NFS export of the packages directory would be ideal. If you cannot use NFS, you could set up Portage to treat the master as a binhost and use emerge -g on the clients.
You can share the Portage tree, downloaded sources, and overlays, without necessarily sharing binary packages. Thus, if you want your servers to build without X, you can do that and still avoid maintaining multiple copies of the same private overlay. |
|
Back to top |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1655
|
Posted: Mon Oct 11, 2010 5:38 am Post subject: |
|
|
Hu wrote: | Using rsync is not necessarily the easiest way to do this. |
I would like to hold the servers back in versions of things until they are stable on the test/build laptop.
One is a "production" server.
So I would like emerge --sync on the server not to sync with a Gentoo mirror but just the build/test laptop. The other(s) are too slow to emerge anything.
Anyone else would run a binary nix distro on these but I would rather have familiar Gentoo base tools. _________________ Donate to Gentoo |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9527 Location: beyond the rim
|
Posted: Mon Oct 11, 2010 10:03 am Post subject: |
|
|
So you want your systems to only use binary packages and completely ignore what's available in the tree otherwise? |
|
Back to top |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1655
|
Posted: Mon Oct 11, 2010 3:57 pm Post subject: |
|
|
Yes, a headless "production" server. _________________ Donate to Gentoo |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9527 Location: beyond the rim
|
Posted: Mon Oct 11, 2010 4:10 pm Post subject: |
|
|
Well, you could simply add EMERGE_DEFAULT_OPTS="-K" in make.conf on systems (excluding the building system of course) and share the binpkgs with the "clients" via NFS (or copy them, or setup a binhost). No need to mess around with rsync stuff. |
|
Back to top |
|
|
|