[email protected] writes: > Should I be able to use variables seen from a "cobbler system dumpvars" > command in my Spacewalk script? > > I am having a problem re-using a template enabled script from a cobbler > build system over on my Spacewalk server. The script is used to help setup > network interface configurations and starts with: > #if $getVar("system_name","") != "" > > I do not have "system_name" defined in my System Details -> Variables section > on Spacewalk but I do see the variables via the "cobbler system dumpvars > --name=server-16": > ... > system_name : server-16 > ... > > That #if block always fails and I'm not getting my interfaces configured at > all. If I ask for the kickstart file via cobbler (on my Spacewalk server), it > yields the block correct: > sudo cobbler system getks --name=server-16 > > Perhaps my problem is how I'm initiating the kickstart? I'm using a corporate > PXE server that I can update and have created an entry that uses the > following boot options: > ks=http://spacewalk.example.com/ks/cfg/org/6/label/test-profile > initrd=fedora18-x86_64/initrd.img text nofb noipv6 network kssendmac > > I thought I just needed to have kssendmac included and Spacewalk would see > the server... Actually, while composing this, I noticed that the dumpvars > command has "mac_address_eth0 : 00:15:17:9b:6a:d0" and this is a Fedora 18 > build and I'm guessing it had interface em1 UP and not an eth0. Could that > explain why Spacewalk isn't identifying my machine and pulling in the cobbler > variables? I'm going to test with adding "biosdevname=0" to my kernel boot > options.
I thought I had potentially solved my problem after coming up with that last theory while composing my last email. The server just completed it's re-install and once again my saved kickstart file shows an empty section where the template would have included extra commands. I guess my main question remains: What is the proper way to initiate a kickstart from Spacewalk and associate a unique client and use the cobbler variables defined? Thanks, -- Jon Miller _______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
