自动选择profile

cobbler system list 
cobbler profile list 
  • 方式一:自动选择profile
cobbler system add --name="linux-node1" --profile="centos7.4-x86_64" --interface="eth0" --mac="x.x.x.x.x.x"
  • 方式二:自动选择profile,自动设置ip地址,主机名等相关网络设置
cobbler system add --name="linux-node1" --profile="centos7.4-x86_64" --interface="eth0" --mac="00:50:56:3D:2C:22" 
--hostname="linux-node1" 
--ip-address="192.168.1.40" 
--subnet="255.255.255.0" 
--gateway="192.168.1.1" 
--name-servers="114.114.114.114 114.114.115.115" 
--static="1" 
--netboot-enabled="Y"
原文地址:https://www.cnblogs.com/lovelinux199075/p/9010476.html