koan-0.6.3-3.el4.mrh - kix templating - network rebuilt issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I have been 'improving' my kix and starting to use templating and using variables e.g

I use snippets in the network config and that looks like this

# cat /var/lib/cobbler/snippets/network_select
network --bootproto=static --device=eth0 --onboot=on --ip=$ip_address --netmask=$netmask --gateway=$gateway --nameserver=$nameserver --hostname=$hostname

and to build a machine i do something like this

# cat buildbox.sh
#!/bin/sh
cobbler system add --name=$1 --mac=$2 --ksmeta="ip_address=$3 netmask=255.255.255.0 hostname=$4 nameserver=192.168.10.4 gateway=$5" --profile=$6

I would then do something like the following to build a box

# ./buildbox.sh 00:0C:29:71:D7:4D 192.168.10.25 foobar 192.168.10.1 CentOS-4.5-i386

These will build fine - but here is the issue.

When i use koan to rebuild the box using the same profile then everything is fine eg

# koan -r -s build-server

Now if i try to rebuild to a different profile that is available on the server e.g

# koan -p CentOS-4.4-i386 -r -s build-server

the kix details appear correct but on reboot the install stops on the IP configuration screen, ie waiting for manual input

Has anyone else seen this or know of workarounds? If i manually put network into into the ks.cfg then the rebuild works as expected?

thanks


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux