Open main menu

CDOT Wiki β

LEAP Builder Setup

Revision as of 11:55, 24 November 2015 by Glaser King San Lo (talk | contribs)

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:
#----- Addons Updates Candidate
[addons-updates-candidate]
name=LEAP-$releasever - Updates for Addon Candidate
#mirrorlist=http://dl.leapproject.ca/leap/mirrorlist/mirrorlist.cgi?repo=leap-addon-updates-$releasever&arch=$basearch
baseurl=http://blue/kojifiles/repos/lp7-addon-updates-candidate/latest/aarch64/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-LEAP-7-1
  • 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/[builder].pem /etc/kojid/client.crt
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 client.crt -> /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