sorin
sorin

Reputation: 170410

How to map a yum repository to a certain subdirectory in Artifactory?

I need to implement something similar to:

I discovered that at least with version 4.1 it seems impossible to map repositories to sub-directories.

enter image description here Is this true or there is a workaround for doing this?

Upvotes: 1

Views: 1069

Answers (2)

Dror Bereznitsky
Dror Bereznitsky

Reputation: 20376

You cannot use the repository key for achieving this. The repository key is used as a unique identifier for the repository and should not be used for manipulating the request path.
If I understand your requirement correctly, there are 2 possible options I can think of:

  1. Change the value of "YUM Metadata Folder Depth" to 1 so Yum metadata will be kept in one level from the root of the repository. This will allow to manage multiple sets of Yum metadata in one repository under different paths.
  2. Use an HTTP proxy such as NginX in front of Artifactory and map the required paths to multiple Yum repositories in Artifactory

Upvotes: 1

sorin
sorin

Reputation: 170410

It seems that's a limitation of the product so I ended up having to raise this bug: https://www.jfrog.com/jira/browse/RTFACT-8683

Upvotes: 0

Related Questions