Setup poudriere clients: Difference between revisions

From wiki
Jump to navigation Jump to search
imported>Jacob
No edit summary
imported>Jacob
No edit summary
Line 2: Line 2:
Previous [[Create first poudriere set]]
Previous [[Create first poudriere set]]
<span style="float:right;">
<span style="float:right;">
Return [[Create package list for poudriere]]
Next [[Create package list for poudriere]]
</span></p><hr>
</span></p><hr>


Welcome to the Poudriere setup
==== Poudriere setup ====
* [[Install poudriere]]
* [[Configure poudriere]]
* [[Create SSL Certificate and Key]]
* [[Create first poudriere set]]
* [[Setup poudriere clients]]
* [[Create package list for poudriere]]
* [[Update poudriere repository]]
<hr><p style="text align:left;">
Previous [[NetAtalk setup]]
<span style="float:right;">
Return [[Freebsd Knowledge Base]]
</span></p>




Line 64: Line 48:
   DBG(1)[1899]> Fetch: fetching from: http://sjapkg.sjakio.com/packages/12amd64-sjapkg/packagesite.txz with opts "i"
   DBG(1)[1899]> Fetch: fetching from: http://sjapkg.sjakio.com/packages/12amd64-sjapkg/packagesite.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)
<hr><p style="text align:left;">
Previous [[Create first poudriere set]]
<span style="float:right;">
Next [[Create package list for poudriere]]
</span></p>

Revision as of 19:16, 28 November 2019


Previous Create first poudriere set Next Create package list for poudriere




Create the repository directory and files.

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 sjapkg 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/sjapkg.conf
sjapkg: {
	url: "http://sjapkg.sjakio.com/packages/12amd64-sjapkg",
	mirror_type: "http",
	signature_type: "pubkey",
	pubkey: "/usr/local/etc/ssl/poudriere/sjapkg.sjakio.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/sjapkg.sjakio.com.pub.key.pem
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvYKLD2N12/1sOGKjjhOO
.
.
.
.
gwIDAQAB
-----END PUBLIC KEY-----

Test the connection.

The -d option can be used to display debug information

# pkg -d search vim
 DBG(1)[1899]> pkg initialized
 DBG(1)[1899]> PkgRepo: verifying update for sjapkg
 DBG(1)[1899]> Pkgrepo, begin update of '/var/db/pkg/repo-sjapkg.sqlite'
 DBG(1)[1899]> Fetch: fetching from: http://sjapkg.sjakio.com/packages/12amd64-sjapkg/meta.txz with opts "i"
 DBG(1)[1899]> Fetch: fetching from: http://sjapkg.sjakio.com/packages/12amd64-sjapkg/packagesite.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