Michal Ludvig writes:
 >   Hi guys,
 > 
 > I'm installing Puppet on RHEL5 systems using KickStart but struggle with 
 > the first boot.
 > 
 > Here's my situation:
 > 1) kickstart installs the system, including puppet from our local repo
 > 2) after reboot I have to login and set the hostname and IP
 > 3) then run puppet, register it with the server and bring in the config
 > 4) configure puppet for automatic start
 > 
 > I have to configure the hostname before running puppet for the first 
 > time, otherwise it makes its certificate with a wrong name (either 
 > 'localhost' or something supplied by dhcp). I'm aware this is not really 
 > a Puppet question but how do you guys do this? How do you 
 > (semi-)automatically configure the hostname before running puppet for 
 > the first time?

We're using Cobbler (which uses Kickstart to do the basic system
installation) and it easily allows us to create per-host kickstart
profiles that set the hostname and configure network interfaces.  That
information is actually something you can put directly into a Kickstart
profile but it means you'd have to create per-host profiles rather than
use one master profile for everything.

I'm not our local Cobbler/Kickstart expert, but the guy who created our
Cobbler installation even figured out how to script a new host's initial
registration with the puppetmaster (I believe the key idea is that there
is a command-locked ssh identity key that allows the host to get in to
the puppetmaster and issue the right "puppetca" command).  I'd have to
do some digging to look up the specifics.

 > Thanks
 > 
 > M.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to