openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'
manage_dhcp: 1
subnet 192.168.10.0 netmask 255.255.255.0 { option routers 192.168.10.1; option domain-name-servers 8.8.8.8; option subnet-mask 255.255.255.0; range dynamic-bootp 192.168.10.100 192.168.10.254;
filename "/pxelinux.0";
default-lease-time 21600;
max-lease-time 43200;
next-server $next_server;
}
cobbler profile add --name=CentOS5.5 --distro=CentOS5.5-x86_64 --kickstart=/var/lib/cobbler/kickstarts/CentOS5.ks
|
cobbler profile add --name=CentOS5.5 --distro=CentOS5.5-i386
|
cobbler profile rename --name=CentOS5.5 �Cnewname=CentOS5.5-i386
|
cobbler profile remove --name=CentOS5.5
|
cobbler system add --name=webserver1 --ip=192.168.0.110 --mac=00:0C:29:77:89:c7 --profile=webserver --kickstart=/var/lib/cobbler/kickstarts/webserver.ks --static=1
|
cobbler system add --name=webserver1 --ip=192.16810.110
|
cobbler system rename --name= webserver1 �Cnewname= dbserver1
|
cobbler system remove --name=dbserver1
|
命令名称
|
命令用途
|
cobbler check
|
核对当前设置是否有问题
|
cobbler list
|
列出所有的cobbler元素
|
cobbler report
|
详细的列出个元素
|
cobbler sync
|
同步配置到dhcp/pxe和数据目录
|
cobbler reposync
|
同步yum仓库
|
配置文件名称
|
用
途
|
/etc/cobbler/settings
|
cobbler主配置文件
|
/etc/cobbler
|
dhcp、dns、pxe、dnsmasq的模板配置文件
|
/etc/cobbler/users.digest
|
用于web访问的用户名密码配置文件
|
/etc/cobbler/modules.conf
|
模块配置文件
|
/etc/cobbler/users.conf
|
Cobbler WebUI/Web service授权配置文件
|
目录名称
|
用
途
|
images/
|
存储所有导入发行版的Kernel和initrd镜像用于远程网络启动
|
ks_mirror/
|
存储导入的发行版
|
repo_mirror/
|
yum repos存储目录
|
/var/log/cobbler
|
存放日志文件/var/log/cobbler/cobbler.log
|
目录名称
|
用
途
|
configs/
|
存储distros、repos、systems和profiles相关信息
|
backup/
|
备份目录
|
snippets/
|
放置一些可以在kickstarts导入的脚本小片段
|
triggers/
|
放置一些可执行脚本
|
kickstarts/
|
放置kickstart模板文件
|