News
Account
Nice
Repositories
Links
GPG

Torrents for Fedora Unity Re-Spins

Setting a hostname by kanarip

Setting a hostname proved to be a PITA. Although setting a hostname shouldn't at all be any difficult, it proved to need some thought.

As I'm managing my workstations with puppet, after provisioning a system when puppetd starts for the very first time, it'll generate a client side certificate based on the hostname at that time. When provisioning systems with either a kickstart based install, regardless of the provisioning being facilitated by cobbler, you'll find that before you reboot the machine, you need to have set the hostname because it's going to use whatever hostname it finds for things like the client side puppet certificate generation.

So how do you set the hostname before or at the first boot? Maybe you can set it via DHCP? It'd be pretty easy to create a named host reservation, fair enough. Maybe, you can have hostnames based on the IP address and let the hostname be set by forward and reverse DNS on whatever IP address the machine gets.

But what happens when none of the above apply? I thought about setting a parameter on the 'boot prompt' command line, but I couldn't find any pre-defined and usable parameters. However, I've not really been investigating if such parameter exists.

You can also set it in the kickstart file, or maybe have a HTTP server generate a kickstart file with a unique hostname. Anyway, here's how I've done it:

When installing the machine, append 'hostname=whatever.host.kanarip.com' at the prompt. Because it starts installing using some kickstart file, %post could do nifty stuff. I'm using this:

%post
CMDLINE=`cat /proc/cmdline`
for cmd in ${CMDLINE}; do
if [ ! -z "`echo ${cmd} | grep "hostname="`" ]; then
hostname=`echo ${cmd} | cut -d'=' -f 2`
fi
done
if [ ! -z "${hostname}" ]; then
sed -i -e 's/HOSTNAME=localhost.localdomain/HOSTNAME=${hostname}/g' /etc/sysconfig/network
echo "DHCP_HOSTNAME=${hostname}" >> /etc/sysconfig/network
fi

Not only does this set the hostname, but it also explicitly requests the DHCP server what hostname to update in Dynamic DNS. When your network environment runs that crappy 'feels-like-it-should-work' variant of Directory Services including the network bits like DNS and DHCP, you'll find that operating system that should never have been plugged in to the network, unable to 'just update' -even if you set 'Always update A and PTR records for clients even if they do not request it'.

If you have any suggestions, and I suspect you do, feel free to mail me or comment here ;-)

0 comments
 
Really kicks ass by kanarip

Revisor really kicked some ass. I went to LinuxTag last week, all to show off Revisor to the general public and do some Ambassadors work as well as meet the other Ambassadors from Europe. There were 22 of us in total, including Gerold Kassube, Max Spevack and Mike McGrath.

I never noticed how a Fedora Core release was being presented and how much attention it attracted from any press or the public in general but now that I am so involved it really amazes me to see how much attention it is all getting. Max had guaranteed me that Revisor would be mentioned in like every article about Fedora 7 and every interview he gave, and then I saw this movie:

http://www.redhatmagazine.com/2007/06/01/video-fedora-7-highlights/

Also, since Bob Jensen as the Fedora Unity Lead -you know, the one that puts his ass on the line for a project- had received a Fedora Award 2007 for the great work Fedora Unity did, he ensured me I'd get one send to me as well (also Jonathan Steffan is getting one). That is... Such a great honor! I'm really happy with it, I'll put it somewhere everyone can see it and take pictures and put them online ;-)

I was also invited to the next FUDCon in Raleigh, later this year. At the date I had gotten though I had some other obligations: The RHCE Rapid Course Track including the RH302 Exam. Not too difficult a choice though, right? ;-) I'm gonna work on staying in Raleigh for like another week and then take the RHCE Exam in Raleigh. 

Then, after having Revisor out there, in the open, people started to like it:

This is just one of the most funny banners that had been made (thank you Máirí­n Duffy).

Some more details on what happened at the LinuxTag Fedora 7 announcement speech you can get from Max's blog  

0 comments
 
Revisor Homepage and Mailing Lists by kanarip

Revisor now has it's own homepage at http://revisor.fedoraunity.org/, and it's own mailing lists. You can find the documentation on Revisor on it's homepage, as well as the feature list , and some screenshots.

We're now developing Revisor to work with Fedora 7, it's anaconda-runtime, yum, pykickstart, system-config-kickstart and pungi have been updated and let me tell you, they changed a lot! For the better, of course ;-)

0 comments
 
Revisor moves forward by kanarip

Revisor has moved to it's final development repository on http://hosted.fedoraproject.org/projects/revisor. Check out the Timeeline for these past few days... It's been a hell of a week ;-)

0 comments
 
Feature list for Revisor by kanarip

I've made a feature list of things we want Revisor to be able to do. Quite a list actually. I'm hoping to get all of this done in time for the release of Fedora 7...

0 comments