Setup poudriere clients: Difference between revisions
Jump to navigation
Jump to search
imported>Jacob No edit summary |
|||
| (16 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
== Create the | <hr><p style="text align:left;"> | ||
Previous [[Create first poudriere set]] | |||
<span style="float:right;"> | |||
Next [[Create package list for poudriere]] | |||
</span></p><hr> | |||
=== Create the sjapkg poudriere package environment. === | |||
Create the pkg repository directory. | Create the pkg repository directory. | ||
# mkdir -p /usr/local/etc/pkg/repos/ | ># mkdir -p /usr/local/etc/pkg/repos/ | ||
Create the ssl directory. | Create the ssl directory. | ||
# mkdir -p /usr/local/etc/ssl/poudriere/ | ># mkdir -p /usr/local/etc/ssl/poudriere/ | ||
Create the 2 repos file.<br> | Create the 2 repos file.<br> | ||
One file for the FreeBSD repository, which we will disable and one for the | One file for the FreeBSD repository, which we will disable and one for the mypkg repository, which we will enable and profide a link too. | ||
# vim /usr/local/etc/pkg/repos/freebsd.conf | ># vim /usr/local/etc/pkg/repos/freebsd.conf | ||
FreeBSD: { | FreeBSD: { | ||
enabled: no | |||
} | } | ||
# vim /usr/local/etc/pkg/repos/ | ># vim /usr/local/etc/pkg/repos/mypkg.conf | ||
sjapkg: { | sjapkg: { | ||
url: "http:// | url: "http://mypkg.example.com/packages/121amd64-sjapkg", | ||
mirror_type: "http", | mirror_type: "http", | ||
signature_type: "pubkey", | signature_type: "pubkey", | ||
pubkey: "/usr/local/etc/ssl/poudriere/ | pubkey: "/usr/local/etc/ssl/poudriere/mypkg.example.com.pub.key.pem"; | ||
enabled: yes | enabled: yes | ||
} | } | ||
NOTE: When jails are in use each jail must be adjusted like this, best to do that in the template before the jails are created! | NOTE: When jails are in use each jail must be adjusted like this, best to do that in the template before the jails are created! | ||
Create the public key. | |||
># vim /usr/local/etc/ssl/poudriere/YOURPKGNAME.example.com.pub.key.pem | |||
-----BEGIN PUBLIC KEY----- | |||
. | |||
. | |||
. | |||
. | |||
-----END PUBLIC KEY----- | |||
=== Test the connection. === | |||
The -d option can be used to display debug information | The -d option can be used to display debug information | ||
<pre> | |||
# pkg -d search vim-console | |||
</pre> | |||
<pre> | |||
DBG(1)[1899]> pkg initialized | DBG(1)[1899]> pkg initialized | ||
DBG(1)[1899]> PkgRepo: verifying update for | DBG(1)[1899]> PkgRepo: verifying update for mypkg | ||
DBG(1)[1899]> Pkgrepo, begin update of '/var/db/pkg/repo- | DBG(1)[1899]> Pkgrepo, begin update of '/var/db/pkg/repo-mypkg.sqlite' | ||
DBG(1)[1899]> Fetch: fetching from: http:// | DBG(1)[1899]> Fetch: fetching from: http://mypkg.example.com/packages/12amd64-mypkg/meta.txz with opts "i" | ||
vim-console-8.1.1099 Improved version of the vi editor (console only) | vim-console-8.1.1099 Improved version of the vi editor (console only) | ||
</pre> | |||
<br> | |||
<hr> | |||
<p style="text align:left;">Previous [[Create first poudriere set]] | |||
<span style="float:right;">Next [[Create package list for poudriere]] | |||
</span></p><center> Up [[Poudriere setup]]</center> | |||
<hr> | |||
Latest revision as of 09:27, 20 March 2021
Previous Create first poudriere set Next Create package list for poudriere
Create the sjapkg poudriere package environment.
Create the pkg repository directory.
># mkdir -p /usr/local/etc/pkg/repos/
Create the ssl directory.
># mkdir -p /usr/local/etc/ssl/poudriere/
Create the 2 repos file.
One file for the FreeBSD repository, which we will disable and one for the mypkg repository, which we will enable and profide a link too.
># vim /usr/local/etc/pkg/repos/freebsd.conf
FreeBSD: {
enabled: no
}
># vim /usr/local/etc/pkg/repos/mypkg.conf
sjapkg: {
url: "http://mypkg.example.com/packages/121amd64-sjapkg",
mirror_type: "http",
signature_type: "pubkey",
pubkey: "/usr/local/etc/ssl/poudriere/mypkg.example.com.pub.key.pem";
enabled: yes
}
NOTE: When jails are in use each jail must be adjusted like this, best to do that in the template before the jails are created! Create the public key.
># vim /usr/local/etc/ssl/poudriere/YOURPKGNAME.example.com.pub.key.pem -----BEGIN PUBLIC KEY----- . . . . -----END PUBLIC KEY-----
Test the connection.
The -d option can be used to display debug information
# pkg -d search vim-console
DBG(1)[1899]> pkg initialized DBG(1)[1899]> PkgRepo: verifying update for mypkg DBG(1)[1899]> Pkgrepo, begin update of '/var/db/pkg/repo-mypkg.sqlite' DBG(1)[1899]> Fetch: fetching from: http://mypkg.example.com/packages/12amd64-mypkg/meta.txz with opts "i" vim-console-8.1.1099 Improved version of the vi editor (console only)
Previous Create first poudriere set Next Create package list for poudriere