Discussion: I set up a Poudriere repo on host A (192.168.1.149). It has all the packages needed to bootstrap pkg on another host with a barebones install. My issue seems to be with bootstrapping pkg on a bare-bones host B (192.168.1.120), a practice VM. On host B, I pointed pkg(8) to the Poudriere repo, and intentionally disabled the official repos.
Doing some research, I learned that pkg(8) uses fetch(1) to get just about everything. Reading through the manpages, including fetch(3), got me to conclude that there's 3 different URL schemas available to feed to fetch(1):
Question: I'm thinking of editing /usr/local/etc/pkg/repos/custom.conf to put in the URL like this:
If there's other ways to make my Poudriere repo actually usable for bootstrapping pkg on remote hosts, let's talk, please!
Doing some research, I learned that pkg(8) uses fetch(1) to get just about everything. Reading through the manpages, including fetch(3), got me to conclude that there's 3 different URL schemas available to feed to fetch(1):
- HTTP (Port 80): I succeeded in turning that off: Thread http-https-on-apache-2-4.82266
- HTTPS (Port 443): Yeah, I did set that up, but self-signed certs have been a time-consuming struggle that never got resolved properly. I don't want to use Let's Encrypt on an internal, homebrew project.
- FTP (Port 20/21) : I'm aware of pitfalls here. Also, seems to be off by default on 13.0-RELEASE (I know 13.1 is out there).
Question: I'm thinking of editing /usr/local/etc/pkg/repos/custom.conf to put in the URL like this:
ftp://192.168.1.149:22/path/to/repo
. Basically, using port 22 in the FTP URL schema. Will that work? Or are there other ways to accomplish the bootstrapping?If there's other ways to make my Poudriere repo actually usable for bootstrapping pkg on remote hosts, let's talk, please!