Difference between revisions of "LEAP Builder Setup"
(→Copy Koji Files) |
(→Update Repository Information) |
||
Line 9: | Line 9: | ||
On the builder perform the following configurations | On the builder perform the following configurations | ||
− | + | * copy /etc/hosts file from red to builder | |
− | + | * edit /etc/yum.repos.d/LEAP.repo | |
+ | * disable leap repository: | ||
<pre>enabled=0</pre> | <pre>enabled=0</pre> | ||
− | + | * disable leap-updates repository: | |
<pre>enabled=0</pre> | <pre>enabled=0</pre> | ||
− | + | * add the following repositories: | |
<pre> | <pre> | ||
#----- Koji repository | #----- Koji repository | ||
Line 31: | Line 32: | ||
</pre> | </pre> | ||
− | + | * clean the old repository information: | |
<pre> | <pre> | ||
sudo yum clean all | sudo yum clean all |
Revision as of 14:19, 5 June 2015
Contents
Installation
Automated PXE installation
Perform a automated kickstart installation of LEAP using the current repos.
Configuration
Update Repository Information
On the builder perform the following configurations
- copy /etc/hosts file from red to builder
- edit /etc/yum.repos.d/LEAP.repo
- disable leap repository:
enabled=0
- disable leap-updates repository:
enabled=0
- add the following repositories:
#----- Koji repository [leap-bb1] name=LEAP-$releasever - Koji bb1 baseurl=http://blue/kojifiles/repos/bb1/latest/aarch64/ enabled=1 gpgcheck=0 #----- Koji addon repository [leap-bb1addon] name=LEAP-$releasever - Koji bb1addon baseurl=http://blue/kojifiles/repos/bb1addon/latest/aarch64/ enabled=1 gpgcheck=0
- clean the old repository information:
sudo yum clean all
Install Builder Packages
Perform updates on existing packages and install required koji builder packages.
1. Install the koji builder package
sudo yum install koji-builder
2. Update to latest package set(this is a lot of updates)
sudo yum update
Copy Koji Files
Copy the koji certificates for the build and the configuration files.
- From blue, copy /etc/pki/koji/[builder].pem to the [builder]:/etc/pki/koji/
rsync -av /etc/pki/koji/[builder].pem root@[builder]:/etc/pki/koji/
- From blue, copy /etc/pki/koji/koji_ca_cert.crt to the [builder]:/etc/pki/koji/
rsync -av /etc/pki/koji/koji_ca_cert.crt root@[builder]:/etc/pki/koji/
- From blue, copy /etc/kojid/kojid.conf to the [builder]:/etc/kojid/kojid.conf
rsync -av /etc/kojid/kojid.conf root@[builder]:/etc/kojid/
- On the [builder], edit the file /etc/kojid/kojid.conf and change the user to the name of the builder
user=[builder]
- On the [builder], create the following link setup:
ln -s /etc/pki/koji/x9.pem /etc/kojid/kojid.pem ln -s /etc/pki/koji/koji_ca_cert.crt /etc/kojid/clientca.crt ln -s /etc/pki/koji/koji_ca_cert.crt /etc/kojid/serverca.crt
- example:
ls -l /etc/kojid/ total 4 lrwxrwxrwx 1 root root 30 Jun 5 19:13 clientca.crt -> /etc/pki/koji/koji_ca_cert.crt -rw-r--r-- 1 root root 2283 Dec 22 07:57 kojid.conf lrwxrwxrwx 1 root root 20 Jun 5 19:12 kojid.pem -> /etc/pki/koji/x9.pem lrwxrwxrwx 1 root root 30 Jun 5 19:13 serverca.crt -> /etc/pki/koji/koji_ca_cert.crt
Start kojid service
sudo systemctl start kojid