Difference between revisions of "LEAP Builder Setup"

From CDOT Wiki
Jump to: navigation, search
(Copy Koji Files)
 
(6 intermediate revisions by 3 users not shown)
Line 9: Line 9:
 
On the builder perform the following configurations
 
On the builder perform the following configurations
  
1. edit /etc/yum.repos.d/LEAP.repo
+
* copy /etc/hosts file from red to builder
2. disable leap repository:
+
* edit /etc/yum.repos.d/LEAP.repo
 +
* disable leap repository:
 
<pre>enabled=0</pre>
 
<pre>enabled=0</pre>
3. disable leap-updates repository:
+
* disable leap-updates repository:
 
<pre>enabled=0</pre>
 
<pre>enabled=0</pre>
4. add the following repositories:
+
* add the following repositories:
 
<pre>
 
<pre>
#----- Koji repository
+
#----- Addons Updates Candidate
[leap-bb1]
+
[addons-updates-candidate]
name=LEAP-$releasever - Koji bb1
+
name=LEAP-$releasever - Updates for Addon Candidate
baseurl=http://blue/kojifiles/repos/bb1/latest/aarch64/
+
#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
 
enabled=1
 
gpgcheck=0
 
gpgcheck=0
 
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-LEAP-7-1
#----- Koji addon repository
 
[leap-bb1addon]
 
name=LEAP-$releasever - Koji bb1addon
 
baseurl=http://blue/kojifiles/repos/bb1addon/latest/aarch64/
 
enabled=1
 
gpgcheck=0
 
 
 
 
</pre>
 
</pre>
5. clean the old repository information:
+
* clean the old repository information:
 
<pre>
 
<pre>
 
sudo yum clean all
 
sudo yum clean all
Line 47: Line 42:
 
Copy the koji certificates for the build and the configuration 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/
+
* From blue, copy /etc/pki/koji/[builder].pem to the [builder]:/etc/pki/koji/
# From blue, copy /etc/pki/koji/koji_ca_cert.crt to the [builder]:/etc/pki/koji/
+
<pre>rsync -av /etc/pki/koji/[builder].pem  root@[builder]:/etc/pki/koji/</pre>
# From blue, copy /etc/kojid/kojid.conf to the [builder]:/etc/kojid/kojid.conf
+
 
# On the [builder], edit the file /etc/kojid/kojid.conf and change the user to the name of the builder
+
* From blue, copy /etc/pki/koji/koji_ca_cert.crt to the [builder]:/etc/pki/koji/
 +
<pre>rsync -av /etc/pki/koji/koji_ca_cert.crt  root@[builder]:/etc/pki/koji/</pre>
 +
 
 +
* From blue, copy /etc/kojid/kojid.conf to the [builder]:/etc/kojid/kojid.conf
 +
<pre>rsync -av /etc/kojid/kojid.conf  root@[builder]:/etc/kojid/</pre>
 +
 
 +
* On the [builder], edit the file /etc/kojid/kojid.conf and change the user to the name of the builder
 +
<pre>user=[builder]</pre>
 +
 
 +
* On the [builder], create the following link setup:
 
<pre>
 
<pre>
user=[builder]
+
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
 
</pre>
 
</pre>
\# On the [builder], create the following link setup:
+
 
 +
* example:  
 
<pre>
 
<pre>
  
 +
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
 
</pre>
 
</pre>
 +
 +
==Start kojid service==
 +
<pre>sudo systemctl start kojid</pre>

Latest revision as of 12:02, 24 November 2015

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