Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2015 14:54:39 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: pkg URL PACKAGESITE
Message-ID:  <54C6552F.20004@infracaninophile.co.uk>
In-Reply-To: <20150126143042.GB25999@pcjas.obspm.fr>
References:  <20150126143042.GB25999@pcjas.obspm.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--CnLQokfFXL5Wt2wbXRf1opnSnradGh2qL
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 01/26/15 14:30, Albert Shih wrote:
> I'm running a poudriere on one server who build everything for me.
>=20
> I would like to create a mirror of this repository only a mirror of the=

> package so, just another nginx/apache and a rsync.
>=20
> Is it possible to put two URL (knowning it's just a mirror) inside the =
pkg
> repository config ? So if one is down pkg use the other.

This is what pkg+http:// or pkg+https// style URLs and MIRROR_TYPE=3DSRV
are for.  You create some SRV records in the DNS which resolve to the
list of URLs you want your pkg repo to be available at.

_http._tcp.pkg.example.com IN SRV 10 10 80 pkg1.example.com
_http._tcp.pkg.example.com IN SRV 50 10 80 pkg2.example.com

Check the docco on SRV records -- you can use the 'priority' field to
direct traffic to one server primarily, and then try the other one if
the first fails.

	Cheers,

	Matthew



--CnLQokfFXL5Wt2wbXRf1opnSnradGh2qL
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJUxlUvXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw
MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnXisP/36zGNaCXM4w0jD9Tm2buAI8
P45Kk1ftBFtXfpIS6cv1r1h2D8cboQ/RvhV+TrmjNSUKOPSO6fysSC1lnYXZ3H8T
clSAwfCp/fXwbdZcT1nx56Aw8cuX3QXWnK6ZOxv5419jBwK+tOzMXzaBdqx+jPJn
nJEGR6PQ/f8Zn2tuZSshatKHZuaXycEcxBwzwBSKehoAb/Nxex9Wc+KdeXXEEdJq
Y6Q/bDGTVWMDRGXxun0wRZ1lcoHg1wUjbqy96IjFQXMW0vWoQ2OfqyscHUAdxzQg
7nZ6n2Vgx+8Neq68aP++XPsc9f23oAkkL9H593Y8txm1Z9hxPN2reuuq8xvjjvup
q8EkevbZh4IhHhmP5XUah9pVENTrPoLyRAWi7C/ecKDIaClQ3KoME/oPxhb7jNDc
kogCj5pWthBvaL03SIhnPrBj03wHmpGRz9SoQC6EjJqFJ/GR8z8FDty/Wl0RqqCH
lEPe5n+xBQFpMp90Zitb9h/FaeLasNjwSi4TmPljR79yI3qFYSpmCu/S2+/4dq+x
ZJpaUE+QVRc3uiFotHYyhTeZkLesHCJPMdAs3F1QE3QB1zvs1XRPx2qQip2CW8an
o1IBQY6pLcFU4euVPLjOZbwCKZAW2qEXDqqhQGfjHZNq41mbxReS8hWx+2igyCHu
+gXAqFV8jJaVkpA0ndT6
=c4fZ
-----END PGP SIGNATURE-----

--CnLQokfFXL5Wt2wbXRf1opnSnradGh2qL--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54C6552F.20004>