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 –newname=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 –newname= 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受權配置文件
|
目錄名稱
|
用
途
|
p_w_picpaths/
|
存儲全部導入發行版的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模板文件
|