问题原文
原帖链接 · red888 · CC BY-SA 3.0
In the kickstart file you can set the hostname like this:
network --hostname=derp.fart
I can create a new system with this command
cobbler system add --name=MYNEWSYSTEM --profile=string --mac=AA:BB:CC:DD:EE:FF
How Can I have cobbler put the name of the system (MYNEWSYSTEM) in for the --hostname param in the kickstart file?
已采纳解答
原帖链接 · Aaron Copley · CC BY-SA 3.0
Cobbler uses Cheetah as the templating engine and according to the documentation, $hostname is a built-in variable that you can use.
You can see other variables with;
cobbler system dumpvars --name=system
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
