add createrepo_c package, fix mirror directories; refactor to one sentence per line.
This commit is contained in:
parent
8097fb8fc2
commit
77559385af
2 changed files with 24 additions and 35 deletions
|
|
@ -19,6 +19,7 @@
|
|||
with_items:
|
||||
- certbot
|
||||
- cockpit
|
||||
- createrepo_c
|
||||
- fail2ban
|
||||
- fail2ban-server
|
||||
- firewalld
|
||||
|
|
@ -132,7 +133,7 @@
|
|||
http{
|
||||
server {
|
||||
listen 80;
|
||||
server_name mirror.ritlug.com;
|
||||
server_name server FQDN;
|
||||
root /var/www/;
|
||||
# Load configuration files for the default server block.
|
||||
include /etc/nginx/default.d/*.conf;
|
||||
|
|
@ -159,10 +160,10 @@
|
|||
mode: 0755
|
||||
state: directory
|
||||
with_items:
|
||||
- /var/www/mirror.ritlug.com/
|
||||
- /var/www/mirror.ritlug.com/TigerOS/
|
||||
- /var/www/mirror.ritlug.com/TigerOS/27/
|
||||
- /var/www/mirror.ritlug.com/TigerOS/27/release/
|
||||
- /var/www/mirror.ritlug.com/TigerOS/27/packages/
|
||||
- /var/www/mirror.ritlug.com/TigerOS/27/packages/source/
|
||||
- /var/www/mirror.ritlug.com/TigerOS/27/packages/x86_64/
|
||||
- /var/www/server_name/remix name/version/release/
|
||||
- /var/www/server_name/remix name/
|
||||
- /var/www/server_name/remix name/version/
|
||||
- /var/www/server_name/remix name/version/release/
|
||||
- /var/www/server_name/remix name/version/packages/
|
||||
- /var/www/server_name/remix name/version/packages/source/
|
||||
- /var/www/server_name/rewmix name/version/packages/x86_64/
|
||||
|
|
|
|||
|
|
@ -1,34 +1,27 @@
|
|||
[automated-build-system-for-remixes-without-koji]]
|
||||
= Automated Build System For Remixes Without Koji
|
||||
|
||||
This document outlines the process of creating an automated RPM and ISO
|
||||
building infrastructure for smaller
|
||||
https://fedoraproject.org/wiki/Remix[Fedora Remix] projects that do not make
|
||||
use of Fedora's Koji ecosystem.
|
||||
This document outlines the process of creating an automated RPM and ISO building infrastructure for smaller https://fedoraproject.org/wiki/Remix[Fedora Remix] projects that do not make use of Fedora's Koji ecosystem.
|
||||
|
||||
[[basic-setup]]
|
||||
== Basic Setup
|
||||
|
||||
It is best practice to keep the web server and builder separate.
|
||||
|
||||
The web server is a CentOS system. It's main purpose is to host the public ISO
|
||||
downloads and package repository. The
|
||||
https://pagure.io/fedora-docs/remix-building/blob/master/f/playbook-mirror.yml[playbook-mirror.yml]
|
||||
Ansible playbook located in this repository automates the provisioning of the
|
||||
web server.
|
||||
The web server is a CentOS system.
|
||||
It's main purpose is to host the public ISO downloads and package repository.
|
||||
The https://pagure.io/fedora-docs/remix-building/blob/master/f/playbook-mirror.yml[playbook-mirror.yml] Ansible playbook located in this repository automates the provisioning of the web server.
|
||||
The choice of CentOS was to maximize support time and stay within the RHEL family.
|
||||
It could just as easily be a Debian server though the playbook would need to be adjusted.
|
||||
|
||||
The builder is a Fedora system provisioned using the
|
||||
https://pagure.io/fedora-docs/remix-building/blob/master/f/playbook-builder.yml[playbook-builder.yml]
|
||||
Ansible playbook. The builder is a Jenkins CI server which rebuilds RPMs when
|
||||
changes are made in the version control. The automation should be configured
|
||||
in Jenkins to trigger on a push to `master` for each repo housing package
|
||||
sources.
|
||||
The builder is a Fedora system provisioned using the https://pagure.io/fedora-docs/remix-building/blob/master/f/playbook-builder.yml[playbook-builder.yml] Ansible playbook.
|
||||
The builder is a Jenkins CI server which rebuilds RPMs when changes are made in the version control.
|
||||
The automation should be configured in Jenkins to trigger on a push to `master` for each repo housing package sources.
|
||||
|
||||
[[RPMs]]
|
||||
== RPMs
|
||||
|
||||
The series of commands shown below illustrates the process of building RPM
|
||||
packages with Jenkins.
|
||||
The series of commands shown below illustrates the process of building RPM packages with Jenkins.
|
||||
|
||||
....
|
||||
sudo rm -rf /home/$USER/to-sign/
|
||||
|
|
@ -39,13 +32,11 @@ sudo cp /var/lib/copr-rpmbuild/results/*.rpm /home/$USER/to-sign
|
|||
rm -rf /var/lib/copr-rpmbuild/results
|
||||
....
|
||||
|
||||
Once the RPM build finishes, a responsible team member then needs to connect
|
||||
to the build server via SSH in order to sign the completed RPM package using:
|
||||
Once the RPM build finishes, a responsible team member then needs to connect to the build server via SSH in order to sign the completed RPM package using:
|
||||
|
||||
`sudo rpmsign --addsign /path/to/to-sign/directory/*rpm`
|
||||
|
||||
A tool such as `rsync` should then be used to push the new packages to
|
||||
the mirror. After verifying the permissions are correct, run:
|
||||
A tool such as `rsync` should then be used to push the new packages to the mirror. After verifying the permissions are correct, run:
|
||||
|
||||
`sudo createrepo --update /path/to/RPMs or SRPMs`
|
||||
|
||||
|
|
@ -54,11 +45,9 @@ on the mirror in order to update the proper RPM repository.
|
|||
[[ISOs]]
|
||||
== ISOs
|
||||
|
||||
ISOs should be built as needed. In order to build an ISO, you need two
|
||||
prerequisites:
|
||||
ISOs should be built as needed. In order to build an ISO, you need two prerequisites:
|
||||
|
||||
. A kickstart file to be used by the
|
||||
https://fedoraproject.org/wiki/Anaconda[Anaconda Installer]
|
||||
. A kickstart file to be used by the https://fedoraproject.org/wiki/Anaconda[Anaconda Installer]
|
||||
. The `lorax-lmc-novirt` and `pykickstart` Fedora packages
|
||||
|
||||
=== Initial ISO Building
|
||||
|
|
@ -67,8 +56,7 @@ https://fedoraproject.org/wiki/Anaconda[Anaconda Installer]
|
|||
. Enter the directory: `cd fedora-kickstarts/`
|
||||
. Choose a kickstart to use as a base for your remix
|
||||
. Flatten the kickstart: `ksflatten --config [name of kickstart].ks -o flat-[name of kickstart].ks --version [fedora version]`
|
||||
. Edit the `%packages` section of the flat kickstart if you wish to add/remove
|
||||
base packages
|
||||
. Edit the `%packages` section of the flat kickstart if you wish to add/remove base packages
|
||||
. Set `SELinux` to permissive with: `sudo setenforce 0`
|
||||
. Run `livemedia-creator`:
|
||||
|
||||
|
|
|
|||
Reference in a new issue