[Spacewalk-list] Kickstart install with Network config

Frank Paulick frank.paulick at baaderbank.de
Tue Apr 15 09:50:21 UTC 2014


Hi,

i tried the following command:

cobbler system add --name=<name> --interface=eth0 --mac <mac> 
--ip-address=<ip> --subnet=<subnet> --interface=eth1 --ip-address=<2nd ip>

this only creates /etc/sysconfig/network-scripts/ifcfg-eth1 but not 
ifcfg-eth0.

looking at the mentioned snippet it loosk as if this snippet also can 
handle only 1 ip config.

anyone got an idea, how to specify 2 ip configuration in cobbler or 
where ever which should be active after kickstarting the system.

Regards
Frank


On 04/10/2014 05:22 PM, Jon Miller wrote:
> Frank Paulick <frank.paulick at baaderbank.de> writes:
>
>> Hi,
>>
>> currently i add systems which i would like to kickstart using cobbler
>> the following way:
>>
>> cobbler system add --name=$NAME  --mac $MAC --profile
>> rhel6-x86_64-$PROFILE:1:SpacewalkDefaultOrganization --hostname=$NAME
>> --interface=$IFACE --ip-address=$IPADDR --subnet=255.255.0.0 --static=1
>>
>> This creates the required Entries and i can kickstart the systems
>> afterwards.
>>
>> My Problem now is that i need to get a 2nd interface (eth1/em2)
>> configured using spacewalk kickstart
>> Since i would like to get this automatically done, i was wondering if i
>> can pass the 2nd interface also to cobbler or if there is another
>> command i could use to pass the information about the 2nd
>> interface(Device,ip,netmask,def route) to the kickstart config.
>>
>> Regards
>> Frank
> Take a look at the cobbler snippet "post_install_network_config" for ideas in
> how to accomplish what you're doing. You can set/add additional interface
> information via cobbler CLI as well. Here is an example:
> cobbler system edit --name=$NAME --interface=eth1 --ip-address=$IPADDR2 --subnet=255.255.255.0 --static=True
>

-- 
beste Grüße,
Frank Paulick

Baader Bank AG
Weihenstephaner Str. 4
85716 Unterschleißheim
Deutschland

Telefon: +49-89/5150-1522
Telefax: +49-89/5150-2421

Email: frank.paulick at baaderbank.de
Internet: http://www.baaderbank.de
           http://www.bondboard.de
******************************************************************************************************
Baader Bank AG: Vorstand: Uto Baader (Vors.), Nico Baader, Dieter Brichmann; Vorsitzender des Aufsichtsrates: Dr. Horst Schiessl; Amtsgericht München HRB 121537; Sitz der Gesellschaft: Unterschleissheim; StNr. 143/100/10066; USt-IdNr. DE114123893.
******************************************************************************************************
Diese Email enthält vertrauliche Informationen. Sollten Sie diese Email irrtümlich erhalten, machen wir Sie darauf aufmerksam, dass jegliche Verwendung strikt untersagt ist. Bitte informieren Sie uns gegebenenfalls unverzüglich und vernichten Sie das Original. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Email ist nicht gestattet.
Wir haben alle verkehrsüblichen Maßnahmen unternommen, um das Risiko der Verbreitung virenbefallener Software oder Emails zu minimieren, dennoch raten wir Ihnen, Ihre eigenen Virenkontrollen auf alle Anhänge an dieser Nachricht durchzuführen. Wir schließen außer für den Fall von Vorsatz die Haftung für jeglichen Verlust oder Schäden durch virenbefallene Software oder Emails aus.




More information about the Spacewalk-list mailing list