Skip to content

Commit

Permalink
Merge pull request #73 from dmnks/bz1509831
Browse files Browse the repository at this point in the history
docs: baseurl: clarify multiple URLs
  • Loading branch information
dmnks committed Jun 13, 2018
2 parents 1bc3d51 + 98c6fbf commit 07a3c19
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/yum.conf.5
Original file line number Diff line number Diff line change
Expand Up @@ -1032,8 +1032,10 @@ A human readable string describing the repository.
.IP
\fBbaseurl\fR
Must be a URL to the directory where the yum repository's `repodata' directory
lives. Can be an http:https://, ftp:https:// or file:https:// URL. You can specify multiple URLs
in one baseurl statement. The best way to do this is like this:
lives. Can be an http:https://, ftp:https:// or file:https:// URL.

You can specify multiple URLs in one baseurl statement. The best way to do this
is like this:
.br
[repositoryid]
.br
Expand All @@ -1046,6 +1048,12 @@ baseurl=url:https://server1/path/to/repository/
url:https://server3/path/to/repository/
.br

The URLs listed are considered different locations (mirrors) of the same
repository.
That means, if one URL fails, another one is tried, and so on.
The order in which the URLs are tried is determined by the \fBfailovermethod\fR
option.

If you list more than one baseurl= statement in a repository you will find
yum will ignore the earlier ones and probably act bizarrely. Don't do this,
you've been warned.
Expand Down

0 comments on commit 07a3c19

Please sign in to comment.