Build New Kit

From Define Wiki
Revision as of 11:56, 7 December 2012 by Michael (talk | contribs) (Created page with "Note: Detailed instructions can be found here: http://www.hpccommunity.org/blogs/mikem/buildkit-example-51 ===== Install Pre-requisits ===== <pre> yum install bison flex </p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: Detailed instructions can be found here: http://www.hpccommunity.org/blogs/mikem/buildkit-example-51


Install Pre-requisits
yum install bison flex
Create RPM for the Kit
rpmbuild -ta gluster-3.0.2.tar.gz
Create the Kit
kusu-buildkit new kit=gluster

# Add Files to the sources directory
cp RPMS to gluster/sources


Next you need to add files to the build.kit file edit the build.kit file [from: http://www.hpccommunity.org/blogs/mikem/buildkit-example-51]


Add a Source Package
<file build.kit>
acmetools_monitor_pkg = SourcePackage()
acmetools_monitor_pkg.name = 'acmetools-monitor'
acmetools_monitor_pkg.version = '1.01'
acmetools_monitor_pkg.release = '1'
acmetools_monitor_pkg.installroot = '/opt/acmetools/monitor'
acmetools_monitor_pkg.filename = 'acmetools-monitor-1.01.tar.gz'
</file>


Add a Source RPM Package
<file build.kit>
acmetools_node_pkg = SRPMPackage()
acmetools_node_pkg.name = 'acmetools-node'
acmetools_node_pkg.version = '1.2'
acmetools_node_pkg.release = '1'
acmetools_node_pkg.filename = 'acmetools-node-1.2-1.src.rpm'
</file>
Add a RPM Package
<file build.kit>
acmetools_master_pkg = RPMPackage()
acmetools_master_pkg.name = 'acmetools-master'
acmetools_master_pkg.version = '1.2'
acmetools_master_pkg.release = '1'
if getArch() == 'x86':
acmetools_master_pkg.filename = 'acmetools-master-1.2-1.i386.rpm'
if getArch() == 'x86_64':
acmetools_master_pkg.filename = 'acmetools-master-1.2-1.x86_64.rpm'
</file>


Build the Kit
cd to the dir where you run kusu-buildkit from
kusu-buildkit make kit=gluster
Add Kit
# add the kit with kitops
kusu-kitops  -a -m ./kit-gluster-0.1-1.x86_64.iso 
kusu-kitops -l # shows a list of all the kits

# add the kits to the repo then update
kusu-repoman -a -k gluster -r centos-5.4-x86_64
kusu-repoman -r centos-5.4-x86_64 -u

# sync across the nodes
kusu-cfmsync -u
kusu-cfmsync -p