赵老师,能否介绍下cobbler的kickstart模块的一些常配参数

赵老师,能否介绍下cobbler的kickstart模块的一些常配参数。
有一些问题想咨询下
1.环境
 系统版本centos 6.6
 cobbler版本:2.6.9
2.问题:
 我的kickstart配置如下:
# kickstart template for Fedora 8 and later.
# (includes %end blocks)
# do not use with earlier distros

#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth --useshadow --enablemd5
# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all --initlabel
# Use text mode install
text
# Firewall configuration
firewall --enabled
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Use network installation
url --url=$tree
# If any cobbler repo definitions were referenced in the kickstart profile, include them here.
$yum_repo_stanza

# Network information
network --onboot yes --device eth0 --bootproto=static --ip=192.168.222.222 --netmask=255.255.255.0 --gateway=192.168.222.1
$SNIPPET('network_config')
#Partition clearing information
clearpart --all --initlabel
part /boot/efi --fstype=efi --size 200
part /boot --fstype ext4 --size=200 --asprimary
part / --fstype ext4 --size=15000
part swap --size=1024
part /data --fstype ext4 --size=1 --grow
# Reboot after installation
reboot

#Root password
rootpw --iscrypted $default_password_crypted
# SELinux configuration
selinux --disabled
# Do not configure the X Window System
skipx
# System timezone
timezone Asia/Shanghai
# Install OS instead of upgrade
install
# Clear the Master Boot Record
zerombr
# Allow anaconda to partition the system as needed
#autopart
user --name=root --password=richie
%pre
$SNIPPET('log_ks_pre')
$SNIPPET('kickstart_start')
$SNIPPET('pre_install_network_config')
# Enable installation monitoring
$SNIPPET('pre_anamon')
%end

%packages
@base
@core
@development
@server-platform-devel
lftp
samba-client
lftp
openssh-clients
epel-release
%end

%post --nochroot
$SNIPPET('log_ks_post_nochroot')
%end

%post
$SNIPPET('log_ks_post')
chkconfig ip6tables off
cat >> /etc/security/limits.conf <<EOF
* soft nproc 65535
* hard nproc 65535
* soft nofile 102400
* hard nofile 204800
EOF
# Start yum configuration
$yum_config_stanza
# End yum configuration
$SNIPPET('post_install_kernel_options')
$SNIPPET('post_install_network_config')
$SNIPPET('func_register_if_enabled')
$SNIPPET('download_config_files')
$SNIPPET('koan_environment')
$SNIPPET('redhat_register')
$SNIPPET('cobbler_register')
# Enable post-install boot notification
$SNIPPET('post_anamon')
# Start final steps
$SNIPPET('kickstart_done')
# End final steps




%end
问题1:
   设置rootpw --iscrypted $default_password_crypted
   这里是设置的加密吗?那root密码是在哪里设置呢?
 
问题2:
 为什么系统安装的时候,有2个菜单一个是local一个是 pxe 的centos:
 是需要修改etc/cobbler/pxe/pxedefault.template 这个文件吗?
 这个文件配置信息没看明白,能否讲解下。
谢谢!!
 
已邀请:

赵班长 - 不忘初心,方得始终!

1,root密码在cobbler的配置文件中,这个在你执行cobbler check的时候,提示你创建的。/etc/cobbler/settings  default_password_crypted:   101行左右。

2.local是从本地硬盘启动的。整个选择界面都可以修改的。就是修改pxedefault.template 这个配置。可以设置MENU TITILE。设置超时时间等。
谢谢老师!

要回复问题请先登录注册