Fedora-29-config-kickstart-配置-设置

#参考 https://www.jianshu.com/p/66f2383cfddb

[root@192 ~]# dnf search kickstart
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
Last metadata expiration check: 1:10:10 ago on Thu 10 Jan 2019 03:53:35 PM CST.
============================================================================= Name & Summary Matched: kickstart ==============================================================================
pwkickstart.x86_64 : Helps to generate kickstart passwords
python2-dnf-plugin-kickstart.noarch : Kickstart Plugin for DNF
python3-dnf-plugin-kickstart.noarch : Kickstart Plugin for DNF
l10n-kickstarts.noarch : Localized kickstarts for localized spins
pykickstart.noarch : Python utilities for manipulating kickstart files.
custom-kickstarts.noarch : Kickstart files for Custom Spins (not official)
python2-kickstart.noarch : Python 2 library for manipulating kickstart files.
python3-kickstart.noarch : Python 3 library for manipulating kickstart files.
system-config-kickstart.noarch : A graphical interface for making kickstart files
spin-kickstarts.noarch : Kickstart files and templates for creating your own Fedora Spins
================================================================================== Name Matched: kickstart ===================================================================================
fedora-kickstarts.noarch : Official Fedora Spins
================================================================================= Summary Matched: kickstart =================================================================================
docker-anaconda-addon.x86_64 : Anaconda kickstart support for Docker
snake.noarch : Smart Network Automated Kickstart Environment


[root@192 ]# dnf search cobbler
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
Last metadata expiration check: 1:14:14 ago on Thu 10 Jan 2019 03:53:35 PM CST.
=============================================================================== Name Exactly Matched: cobbler ================================================================================
cobbler.x86_64 : Boot server configurator
============================================================================== Summary & Name Matched: cobbler ===============================================================================
cobbler-web.noarch : Web interface for Cobbler
================================================================================== Summary Matched: cobbler ==================================================================================
koan.noarch : Helper tool that performs cobbler orders on remote machines


dnf install -y cobbler-web cobbler pykickstart


firewall-cmd --add-service=http
firewall-cmd --add-service=http --permanent
firewall-cmd --add-service=https
firewall-cmd --add-service=https --permanent

###
# Cobbler Web is powered by Django. Install the cobbler-web package and visit the management URL to access it. Authentication is set up by your cobbler administrator.

dnf install python2-devel -y
dnf install python2-django1.11.noarch python2-django1.11.noarch python2-django-tagging.noarch -y

python2 -m pip install django==1.8.19
python2 -m pip install ipaddress

cobbler get-loaders

cobbler check


vim /etc/cobbler/settings

default_password_crypted: "$1$mF86/UHC$WvcIcX2t6crBz2onWxyac."
next_server: 127.0.0.1
server: 127.0.0.1

cobbler sync
systemctl restart cobblerd httpd
https://127.0.0.1/cobbler_webui_content/

#默认的账号密码
cobbler




#根据需要可自行修改以下配置
# 启动rsync服务
systemctl start rsyncd
systemctl enable rsyncd

# 修改tftp配置文件
sed -i 's#yes#no#' /etc/xinetd.d/tftp
systemctl start tftp.socket
systemctl enable tftp.socket

# 启用cobbler的DHCP管理
sed -i 's/manage_dhcp: 0/manage_dhcp: 1/' /etc/cobbler/settings
# 防止重装
sed -i 's/pxe_just_once: 0/pxe_just_once: 1/' /etc/cobbler/settings
# 修改DHCP模板
sed -i.ori 's#192.168.1#192.168.25#g;22d;23d' /etc/cobbler/dhcp.template
# cobbler组配置文件的位置

# 修改完成之后要进行同步,否则不生效
cobbler sync
cobbler check





错位
vim /var/www/cobbler_webui_content/style.css
89
padding: 10px; 改成padding: 9px;

#http://cobbler.github.com

ImportError: cannot import name TEMPLATE_CONTEXT_PROCESSORS

dnf install -y python2-pip
python2 -m pip install django==1.8.19

python2 -m pip install ipaddress