opm icon indicating copy to clipboard operation
opm copied to clipboard

Additional OPM repositiories

Open splitice opened this issue 9 years ago • 1 comments

  • Have you put any thought into secondary OPM repositories?
  • Perhaps private ones?
  • Could 2 OPM repositories be used at once, or would one need to act as a proxy for the public one (not a bad idea anyway).

splitice avatar Sep 28 '16 07:09 splitice

@splitice We already specify custom download or upload servers in user's ~/.opmrc file though the default settings point to opm.openresty.org. Basically the user can edit ~/.opmrc to switch to her own servers if she wants to.

For multiple parallel repository support similar to yum, yes, it's on the TODO list. The plan is to introduce new [repos NAME] sections in ~/.opmrc to define extra repositories in addition to the main repo defined in download_server in the top-level default section. As in

[repo foo]
download_server = http://10.2.16.8:8080
enabled=yes

[repo bar]
download_server = http://10.2.16.9:1234
enabled=yes

Then opm get will try the repositories in the order default, then foo, and finally bar in this example.

What do you think of it?

agentzh avatar Sep 28 '16 18:09 agentzh