1999 The Central Ohio Linux User Group. // All rights reserved. // Released under the GPL, v. 2. See: LICENSE.TXT // This file: template/header.php // // // echo "\n"; print ""; echo "\n"; echo ""; echo ""; echo "Rossberry.com - The Home of the Mobile Linux Lab"; if ($title != "") { echo " -- $title"; } echo "\n"; // The next line lets us link the header page below // the top ditrectory, and have the buttons work // RPH -- 011124 echo ""; // // scheme://user:pass@host:port/path?query#fragment // //$REQUEST_URI = $_SERVER[REQUEST_URI]; $url=parse_url("$REQUEST_URI"); $svr=$url[host]; //$svr="www.rossberry.net"; $svr="www.rossberry.com"; $server = $server_name ; print ""; ?>

Rossberry.com

Home of the Mobile Linux Lab

Home Overview Philosophy Infrastructure
Version Control Blogs Files cfengine

Cobbler setup

Red Hat'ish OS's use a powerful installation program called "Kickstart" to perform hands off, scripted installations. Anyone who has worked with kickstart for a while probably has a big snarlly pile of kickstart files and scripts for embedding in them, or for managing them. Fortunately for us, several years ago Mike DeHaan of Red Hat's Emerging Technology division set out to create a tool for managing the mess. The result is the Cobbler and Koan programs. As in several other cases, they are a bit of over kill for our little lab, but if you are going to do Red Hat'ish systems, you should be familiar with it.

Add a repo file for your buildserver and the tools repo

[os]
name=os
baseurl=http:///centos-5.5
enabled=yes

[tools]
name=tools
baseurl=http:///tools
enabled=yes
Then
yum install cobbler
for i in httpd cobbler named dhcpd
do
service $i on
done

sed -e 's/DEFAULD PW/`openssl passwd -1 -salt 'MY_SALT' 'MY_PASSWORD'` /etc/cobbler/settings 
#fix server value
sed -e 's/server: 127.0.0.1/server: `MYIP`' /etc/cobbler/settings
# fix selinux for cobbler
setsebool -P httpd_can_network_connect true
semanage  fcontext -a -t public_content_t "/tftpboot/.*" && semanage fcontext -a -t public_content_t "/var/www/cobbler/images/.*"
semanage fcontext -a -t httpd_sys_content_rw_t "/var/lib/cobbler/webui_sessions/.*"
service cobblerd restart
cobbler sync
# add a distro to cobbler
cobbler distro add --name=centos-5.5 --arch=x86_64 --breed=redhat
--kernel=/var/www/html/centos-5.5-x86_64/images/xen/vmlinuz
--initrd=/var/www/html/centos-5.5-x86_64/images/xen/initrd.img

Note that it is important to remember that the distro name + the arch will be used to construct the url to the content you copied in earlier.

1999 The Central Ohio Linux User Group. // All rights reserved. // Released under the GPL, v. 2. See: LICENSE.TXT // This file: template/footer.php // print "


"; // print " \n \n \n "; // $url=parse_url("$REQUEST_URI"); $scheme = $url[scheme]; $host = $url[host]; $whereami = $url[path]; $basename = exec("basename $whereami"); $REFERRER=exec("basename $whereami .php"); $SMURF = exec(" ls | grep $REFERRER | grep txt "); if ($SMURF != "") { ## echo ""; ## This next line of code opens the displayed code in a new window when uncommented echo ""; echo "\"View of "; echo ""; echo "$basename"; } else { print "\n"; print "\n"; } // print " Contact mll@rossberry.com Copyright\n © 2010, 2011 Jim Wildman.\n "; print "
All rights reserved.
"; ?>