Open main menu

CDOT Wiki β

Changes

Fedora-ARM,Dogfood - koji Hub

168 bytes added, 09:17, 13 January 2011
no edit summary
== Project Description ==
The Fedora-ARM koji system uese HongKongIRAQ,an x86_64 system, as the Koji hub.
The Fedora-ARM project to use ARM system as the Koji hub(this is called "Eating own dogfood" in the industry)
== Project Details ==
'''First stage'''
* '''Koji Authentication Selection'''
Setting Up a Koji primarily supports Kerberos and SSL Certificate authentication. For basic koji command line access, plain user/pass combinations are possible. However, kojiweb does not support plain user/pass authentication. Furthermore, once either Kerberos or SSL Certificate authentication is enabled so that kojiweb will work, the plain user/pass method will stop working entirely. As such plain user/pass authentication is a stop gap measure at best unless you intend to never setup a fully functional kojiweb instance.Build System
The Kerberos credentials of the initial admin user will be necessary Koji components may live on separate resources as long as all resources are able to bootstrap the user databasecommunicate.To understand koji configuration is an important in project.
For SSL authentication, SSL certificates for the xmlrpc server, for the various koji components, and one for the admin user will need to be setup'''KOJI Configuration'''
1.[http://fedoraproject.org/wiki/Koji/ServerHowTo#Koji_Authentication_Selection Setting up * SSL Certificates for and authentication]via certificates* Creating a database in PostgreSQL and importing a schema* Working with psql* Apache configuration* Koji web and Koji hub
2.[http://fedoraproject.org/wiki/Koji/ServerHowTo#Setting_up_Kerberos_for_authentication Setting up Kerberos for authentication]
So,Release 0.1 results here [http://ycshon.blogspot.com/2010/11/sbr-600-project-release-01.html in my blog]
'''Second stagePackages'''
Koji DatabaseOn the server (koji-hub/koji-web)
* httpd* mod_ssl* postgresql-server* mod_python (>= 3.3.1.Create Databasefor Kerberos authentication)
yum install postgresqlOn the builder (koji-serverbuilder)
2. Once installed you will then need to initialize the Database with the following command:* mock* rpm-build* createrepo
service postgresql initdbOn the yum repository creation and maintenance (kojira)
3.Start On the Postgresql service with:Bootrapping the Koji build environment
service postgresql start* Importing packages and preparing Koji to run builds* External Repos and preparing Koji to run builds
4. At this point the Postgresql server is installed and operational provided no errors were reported with the database initialized.== Project Plan == Goals for each release:
The next steps is to create a user named “koji”, set up Postgresql and populate the schema:'''release 0.1 - Koji Certificates '''
: useradd koji'''setting up SSL Certificates for Authentication'''
: passwd -d * Certificate generation* Generate CA* Generate the kojicomponent certificates and the admin certificate* Copy certificates into ~/.koji for kojiadmin
: su - postgres
: createuser koji
: Shall the new role be a superuser? (y/n) n'''release 0.2 - PostgreSQL and koji hub'''
: Shall the new role be allowed to create databases? (y/n) n'''release 0.2-1'''
: Shall the new role be allowed to create more new roles?(y/n) n'''1.PostgreSQL Server'''
createdb * Install PostgreSQL* Initialize PostgreSQL DB* Setup User Accounts* Setup PostgreSQL and populate schema* Authorize Koji-O koji kojiweb and Koji-hub resources* Make auth changes live* SSL Certificate authenticationlogout* Give yourself admin permissions
su - koji
psql koji koji < /usr/share/doc/koji*/docs/schema'''release 0.sql2-2'''
exit'''2.Koji hub''' * Install koji-hub* Required Configuration* Optional Configuration* SELinux Configuration* Koji filesystem skeleton
== Project Plan ==
Goals for each release:
* 0.1 - '''Koji Certificates '''
Koji Hub setup - Certificates/security
* 0.2 - '''Koji Hub setup and Koji Database'''
Koji Hub Setup- Configuration
To setup PostgreSQL for use with Koji
* 0.3 - '''Koji Web'''
'''release 0.3-1''' '''1. kojiweb ''' * Install Koji-Web* Required Configuration* Optional Configuration '''2. Koji Builder''' * Install kojid* Required Configuration* Optional Configuration (SSL certificates)* Add the host entry for the koji builder to the database* Add the host to the createrepo channel* A note on capacity* Start Kojid  '''3.kojira''' * Install kojira* Required Configuration* Optional Configuration* Add the user entry for the kojira user* Start Kojira   '''release 0.3-2'''  '''2. Test kojiweb''' * User account* Build software with koji hubpackages   
== Project News ==
5,November I did build and create Koji Certifacation on IRAQ server.
919,Novenber November I set up Koji Database. 26,November Setting up Postgresql server for Koji part 1 6,Dec Setting up Postgresql server for Koji part two
16,Dev setting up Koji hub and Koji web,
== Resources ==
[http://fedoraproject.org/wiki/Koji/ServerHowTo#PostgreSQL_Server PostgreSQL_Server]
 
[http://fedoraproject.org/wiki/Koji/ServerBootstrap importing packages and preparing Koji to run builds]
 
[http://fedoraproject.org/wiki/Koji/ExternalRepoServerBootstrap External Repos and preparing Koji to run builds]
1
edit