On 10/14/2010 03:49 PM, Michal Ludvig wrote:
On 10/15/2010 08:36 AM, Arnau Bria wrote:
On Thu, 14 Oct 2010 23:47:16 +1300
Michal Ludvig wrote
1) kickstart installs the system, including puppet from our local repo
2) after reboot I have to login and set the hostname and IP
kickstart is able to configure your network / hostname. Why don't you
use that feature?
Because we've got a common kickstart for all installs, not a per-host
kickstart. It only installs the very core system and the rest is brought
in and configured by puppet.
We're moving to cobbler,
Looks like cobbler is the prefered method here. I'll give it a try.
You can pass in arguments to the kernel via the bootloader which the
kickstart pre-script then read in.
Example.
while read key value; do
eval "karg_${key}='${value:-1}'"
done <<- EOF
$(< /proc/cmdline sed 's/ /\n/g' | sed 's/=/\t/1')
EOF
Which are then used later in the script to set kickstart parameters or
wherever needed.
Then at the syslinux boot prompt, I do:
install-centos-5 ip=10.0.0.1/24 hostname=host.domain foo
which will install variables like so:
karg_ip=10.0.0.0/24
karg_hostname=host.domain
karg_foo=1
--
Russell A Jackson <[email protected]>
Network Analyst
California State University, Bakersfield
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.