Alex Davies wrote: > Hi Jasper, > > Your pointer has led me to the problem - it seems that the substitution > $ip_address no longer works in my kickstart files :( > > [r...@gcisvlin-cobbler ~]# cobbler system add --name="gcisvlin-ldap" > --mac="00:50:56:ac:55:f4" --ip=10.5.100.70 --hostname=gcisvlin-ldap > --profile=rhel5-i386 --gateway=10.5.100.1 > [r...@gcisvlin-cobbler ~]# cobbler system getks --name=gcisvlin-ldap | > grep network > network --device eth0 --bootproto static* --ip=$ip_address* > --netmask=255.255.255.0 --gateway=10.5.10.254 --nameserver > 10.5.10.20,10.3.10.20 --hostname gcisvlin-ldap > [r...@gcisvlin-cobbler ~]# cat /etc/cobbler/ks-rhel5.ks | grep network > network --device eth0 --bootproto static --ip=$ip_address > --netmask=255.255.255.0 --gateway=$gateway --nameserver > 10.5.10.20,10.3.10.20 --hostname $hostname > > What is the "new" substitution for an IP address? > That would be $interfaces["eth0"]["ip_address"] for eth0. For the new Cobbler, there's been quite some work on the networking setup. Maybe using the new network-snippets (see the provided sample kickstart) would suit your needs as well. Out of the box it can: configure interfaces, nameservers, gateways, hostnames, VLANs, bonding and interface renaming.
Jasper _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
