On 10/14/2010 3:47 AM, Michal Ludvig wrote:
>  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?

At Powerset we generated the hostname from LLDP information.  All of our
hosts were named "switch-port" which was set during installation: custom
installer basically partitioned and formatted, mounted disks, copied
down a tarball of the current "gold master" image, then mucked around in
/mnt/etc setting the hostname and other bits.  Upon reboot, puppet was
run for the first time out of /etc/rc.local doing the rest.

Cheers,
Ryan

-- 
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