1

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?

red888
  • 4,069
  • 16
  • 58
  • 104

1 Answers1

1

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
Aaron Copley
  • 12,345
  • 5
  • 46
  • 67