FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 11-23-2007, 03:40 PM
Harry Hoffman
 
Default Contents of ks.cfg gets overwritten

cobbler system add --name=w3.fqdn.com --ksmeta="disks=sda,sdb
nameserver=192.168.1.3 netmask=255.255.255.0 gateway=192.168.1.201"


man cobbler, and the wiki and doc webpages are great for this.

the variables usually correspond with keywords that anaconda considers
valid within a kickstart file.


so, --hostname=some.host.com, not HOSTNAME

HTH,
Harry


Tom Brown wrote:





You'll probably want to put your kickstart file in /etc/cobbler

When you run cobbler sync, cobbler parses through your kickstart file
and takes any templating you've added and transforms it for use by
anaconda.


For example:
network --bootproto=static --ip=$ip_address --netmask=$netmask
--gateway=$gatewa

y --nameserver=$nameserver --hostname=$hostname --device=eth0 --onboot=on

$ip_address, $netmask, etc. are all variables that cobbler will
replace with actual values (that's I've provided when I did a "cobbler
system add..."


Once cobbler has done this it takes the resulting kickstart file and
drops it in the directories /var/www/cobbler/kickstarts or
/var/www/cobbler/kickstarts_sys


This way if you change the template kickstart (e.g.
/etc/cobbler/rhel-5-webservers.ks) to add something new then you can
just run "cobbler sync".


If you had 5 systems setup to use a profile with that kickstart file
all 5 would be updated automagically, instead of having to deal with
each.




Can anyone help me with adding these variables to the system add command as

# cobbler system add --name=00:0C:29:717:4D --profile=CentOS-4.5-i386
HOSTNAME=test IPADDR=192.168.10.23

this command doesn't take an option called 'HOSTNAME'

and this is the section from my kickstart.ks

network --bootproto=static --device=eth0 --onboot=on --ip=$IPADDR
--netmask 255.255.255.0 --gateway 192.168.10.1 --nameserver 192.168.10.4
--hostname=$HOSTNAME


thanks for all the help so far



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


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 11-23-2007, 04:23 PM
Tom Brown
 
Default Contents of ks.cfg gets overwritten

cobbler system add --name=w3.fqdn.com --ksmeta="disks=sda,sdb
nameserver=192.168.1.3 netmask=255.255.255.0 gateway=192.168.1.201"


man cobbler, and the wiki and doc webpages are great for this.

the variables usually correspond with keywords that anaconda considers
valid within a kickstart file.


so, --hostname=some.host.com, not HOSTNAME




well the following is accepted by cobbler

# cobbler system add --profile=CentOS-4.5-i386 --name=test
--ip=192.168.10.23 --mac=00:0C:29:717:4D --hostname=test


but when the system boots it sits waiting for me to add IP information
but the netmask and gateway are filled - it is getting them from the .ks


# cat /etc/cobbler/kickstart_CentOS-4.5-i386.ks | grep network
# Use network installation
network --bootproto=static --device=eth0 --onboot=on --netmask
255.255.255.0 --gateway 192.168.10.1 --nameserver 192.168.10.4


can you please advise me on what my template file should look like?

I have looked here

https://hosted.fedoraproject.org/projects/cobbler/wiki/KickstartTemplating

but i cant seem to figure it out

thanks

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 11-26-2007, 02:58 PM
Michael DeHaan
 
Default Contents of ks.cfg gets overwritten

Tom Brown wrote:


cobbler system add --name=w3.fqdn.com --ksmeta="disks=sda,sdb
nameserver=192.168.1.3 netmask=255.255.255.0 gateway=192.168.1.201"


man cobbler, and the wiki and doc webpages are great for this.

the variables usually correspond with keywords that anaconda
considers valid within a kickstart file.


so, --hostname=some.host.com, not HOSTNAME




well the following is accepted by cobbler

# cobbler system add --profile=CentOS-4.5-i386 --name=test
--ip=192.168.10.23 --mac=00:0C:29:717:4D --hostname=test


but when the system boots it sits waiting for me to add IP information
but the netmask and gateway are filled - it is getting them from the .ks


# cat /etc/cobbler/kickstart_CentOS-4.5-i386.ks | grep network
# Use network installation
network --bootproto=static --device=eth0 --onboot=on --netmask
255.255.255.0 --gateway 192.168.10.1 --nameserver 192.168.10.4


can you please advise me on what my template file should look like?

I have looked here

https://hosted.fedoraproject.org/projects/cobbler/wiki/KickstartTemplating



but i cant seem to figure it out

thanks

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


Tom,

You might be interested in joining #cobbler on irc.freenode.net.

There are lots of folks that can help walk you through the templating stuff.
Looks like you are missing the line to "network" that adds your IP
address to the kickstart


That's as simple as adding $ip_address and $mac_address in the right
places of the file.


At the bottom of the kickstart templating page there are also pointers
to how kickstart directives work, and a link to a good presentation from
Linux World that explains some

advanced stuff also.

--Michael


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

Thread Tools




All times are GMT. The time now is 10:10 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org