首页 » Linux » 正文

CentOS 7 下搭建cobbler网络自动化部署环境

参考链接:https://www.cnblogs.com/yanjieli/p/11016825.html

名称版本
操作系统CentOS 7.8.2003
cobbler2.8.5
dhcp4.2.5
tftp5.2
httpd2.4.6

#### 安装cobbler软件包

###安装软件包,cobbler在EPEL源中
rpm -ql epel-release >> /dev/nul || yum install -y epel-release
yum -y install cobbler cobbler-web tftp-server dhcp httpd xinetd

###关闭selinux
sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/sysconfig/selinux
setenforce 0

###加入开机启动并启动服务
systemctl enable --now httpd cobblerd

查看安装后的相关文件

[root@cobbler ~]# rpm -ql cobbler
/etc/cobbler                  # 配置文件目录
/etc/cobbler/settings         # cobbler主配置文件,这个文件是YAML格式,Cobbler是python写的程序。
/etc/cobbler/dhcp.template    # DHCP服务的配置模板
/etc/cobbler/tftpd.template   # tftp服务的配置模板
/etc/cobbler/rsync.template   # rsync服务的配置模板
/etc/cobbler/iso              # iso模板配置文件目录
/etc/cobbler/pxe              # pxe模板文件目录
/etc/cobbler/power            # 电源的配置文件目录
/etc/cobbler/users.conf       # Web服务授权配置文件
/etc/cobbler/users.digest     # 用于web访问的用户名密码配置文件
/etc/cobbler/dnsmasq.template # DNS服务的配置模板
/etc/cobbler/modules.conf     # Cobbler模块配置文件
/var/lib/cobbler              # Cobbler数据目录
/var/lib/cobbler/config       # 配置文件
/var/lib/cobbler/kickstarts   # 默认存放kickstart文件
/var/lib/cobbler/loaders      # 存放的各种引导程序
/var/www/cobbler              # 系统安装镜像目录
/var/www/cobbler/ks_mirror    # 导入的系统镜像列表
/var/www/cobbler/images       # 导入的系统镜像启动文件
/var/www/cobbler/repo_mirror  # yum源存储目录
/var/log/cobbler              # 日志目录
/var/log/cobbler/install.log  # 客户端系统安装日志
/var/log/cobbler/cobbler.log  # cobbler日志

查看cobbler配置

[root@cobbler ~]# cobbler check
The following are potential configuration items that you may want to fix:

1 : The 'server' field in /etc/cobbler/settings must be set to something other than localhost, or kickstarting features will not work.  This should be a resolvable hostname or IP for the boot server as reachable by all machines that will use it.
2 : For PXE to be functional, the 'next_server' field in /etc/cobbler/settings must be set to something other than 127.0.0.1, and should match the IP of the boot server on the PXE network.
3 : SELinux is enabled. Please review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:
    https://github.com/cobbler/cobbler/wiki/Selinux
4 : change 'disable' to 'no' in /etc/xinetd.d/tftp
5 : Some network boot-loaders are missing from /var/lib/cobbler/loaders, you may run 'cobbler get-loaders' to download them, or, if you only want to handle x86/x86_64 netbooting, you may ensure that you have installed a *recent* version of the syslinux package installed and can ignore this message entirely.  Files in this directory, should you want to support all architectures,should include pxelinux.0, menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders' command is the easiest way to resolve these requirements.
6 : enable and start rsyncd.service with systemctl
7 : debmirror package is not installed, it will be required to manage debian deployments and repositories
8 : ksvalidator was not found, install pykickstart
9 : The default password used by the sample templates for newly installed machines (default_password_crypted in /etc/cobbler/settings) is still set to 'cobbler' and should be changed, try: "openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'" to generate new one
10 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them

Restart cobblerd and then run 'cobbler sync' to apply changes.
# 设置可以动态修改配置文件
[root@cobbler ~]# sed -ri '/allow_dynamic_settings:/c\allow_dynamic_settings: 1' /etc/cobbler/settings
[root@cobbler ~]# grep allow_dynamic_settings /etc/cobbler/settings 
allow_dynamic_settings: 1
[root@cobbler ~]# systemctl restart cobblerd

解决相应的问题

1 : The 'server' field in /etc/cobbler/settings must be set to something other than localhost, or kickstarting features will not work.  This should be a resolvable hostname or IP for the boot server as reachable by all machines that will use it.

1:必须将/ etc/cobbler/settings中的'server'字段设置为localhost以外的其他内容,否则kickstarting功能将不起作用。 这应该是启动服务器的可解析主机名或IP,该主机名或IP将被使用它的所有计算机访问。

解决方法:
cobbler setting edit --name=server --value=`hostname -I`

####执行之前先执行hostname -I命令以确认获取的是正确的本机IP地址,如果不正确可以直接替换成正确的IP地址
2 : For PXE to be functional, the 'next_server' field in /etc/cobbler/settings must be set to something other than 127.0.0.1, and should match the IP of the boot server on the PXE network.

2:要使PXE正常运行,必须将/etc/cobbler/settings中的'next_server'字段设置为127.0.0.1以外的其他值,并且该字段应与PXE网络上的引导服务器的IP地址匹配。

解决方法:
cobbler setting edit --name=next_server --value=`hostname -I`
3 : SELinux is enabled. Please review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:
    https://github.com/cobbler/cobbler/wiki/Selinux

SELinux处于开启状态,前面已经临时关闭selinux并修改了selinux配置文件,只是没有重启,要消除这个提示重启下服务器即可,也可以直接忽略。
4 : change 'disable' to 'no' in /etc/xinetd.d/tftp
把/etc/xinetd.d/tftp配置文件中的disable项后面的值替换成no,直接修改配置文件或者用sed命令替换

sed -ri '/disable/c\disable = no' /etc/xinetd.d/tftp

###添加开机启动项并立即启动
systemctl enable --now xinetd
xinetd是新一代的网络守护进程服务程序,又叫超级Internet服务器,常用来管理多种轻量级Internet服务。
xinetd提供类似于inetd+tcp_wrapper的功能,但是更加强大和安全。

2.  xinetd的特色
1) 强大的存取控制功能
— 内置对恶意用户和善意用户的差别待遇设定。
— 使用libwrap支持,其效能更甚于tcpd。
— 可以限制连接的等级,基于主机的连接数和基于服务的连接数。
— 设置特定的连接时间。
— 将某个服务设置到特定的主机以提供服务。

2) 有效防止DoS攻击
— 可以限制连接的等级。
— 可以限制一个主机的最大连接数,从而防止某个主机独占某个服务。
— 可以限制日志文件的大小,防止磁盘空间被填满。

3) 强大的日志功能
— 可以为每一个服务就syslog设定日志等级。
— 如果不使用syslog,也可以为每个服务建立日志文件。
— 可以记录请求的起止时间以决定对方的访问时间。
— 可以记录试图非法访问的请求。

4) 转向功能
可以将客户端的请求转发到另一台主机去处理。

5) 支持IPv6
xinetd自xinetd 2.1.8.8pre*起的版本就支持IPv6,可以通过在./configure脚本中使用with-inet6 capability选项来完成。
注意,要使这个生效,核心和网络必须支持IPv6。IPv4仍然被支持。

6) 与客户端的交互功能
无论客户端请求是否成功,xinetd都会有提示告知连接状态。

3.  Xinetd的缺点
当前最大的缺点是对RPC支持的不稳定,但是可以启动protmap,使它与xinetd共存来解决这个问题。

4 使用xinetd启动守护进程
原则上任何系统服务都可以使用xinetd,然而最适合的应该是那些常用的网络服务,同时,这个服务的请求数目和频繁程度不会太高。
像DNS和Apache就不适合采用这种方式
而像FTP、Telnet、SSH等就适合使用xinetd模式,

系统默认使用xinetd的服务可以分为如下几类。
① 标准Internet服务:telnet、ftp。
② 信息服务:finger、netstat、systat。
③ 邮件服务:imap、imaps、pop2、pop3、pops。
④ RPC服务:rquotad、rstatd、rusersd、sprayd、walld。
⑤ BSD服务:comsat、exec、login、ntalk、shell、talk。
⑥ 内部服务:chargen、daytime、echo、servers、services、time。
⑦ 安全服务:irc。
⑧ 其他服务:name、tftp、uucp。
具体可以使用xinetd的服务在/etc/services文件中指出。
5 : Some network boot-loaders are missing from /var/lib/cobbler/loaders, you may run 'cobbler get-loaders' to download them, or, if you only want to handle x86/x86_64 netbooting, you may ensure that you have installed a *recent* version of the syslinux package installed and can ignore this message entirely.  Files in this directory, should you want to support all architectures,should include pxelinux.0, menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders' command is the easiest way to resolve these requirements.

5:/var/lib/cobbler/loaders中缺少某些网络引导加载程序,您可以运行'cobbler get-loaders'下载它们,或者,如果您只想处理x86/x86_64网络引导程序,则可以确保已经安装了最新版本的syslinux软件包,可以完全忽略此消息。 如果要支持所有体系结构,则此目录中的文件应包括pxelinux.0,menu.c32,elilo.efi和yaboot。 'cobbler get-loaders'命令是解决这些要求的最简单方法。

解决方法:
执行cobbler get-loaders命令下载对应的网络引导程序,如果只需要处理X86或者X86_64的网络引导程序,保证安装了最新的syslinux软件包,然后忽略本条内容即可,下载是从github下载,国内访问速度较为缓慢,如果下载失败多试几次就行了。
6 : enable and start rsyncd.service with systemctl

需要使用systemctl 命令启动rsyncd服务,执行systemctl enable --now rsyncd命令启动rsyncd服务即可
7 : debmirror package is not installed, it will be required to manage debian deployments and repositories

7:未安装debmirror软件包,它将需要管理debian部署和存储库

解决方法:
yum install debmirror -y

也可以直接忽略这条内容,这里选择直接忽略这条内容
8 : ksvalidator was not found, install pykickstart
ksvalidator未找到,安装pykickstart软件包

解决方法:
yum install pykickstart -y
9 : The default password used by the sample templates for newly installed machines (default_password_crypted in /etc/cobbler/settings) is still set to 'cobbler' and should be changed, try: "openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'" to generate new one

9:新安装的机器使用的是默认密码(在/etc/cobbler/settings中的default_password_crypted)仍然设置为'cobbler',并且应该更改,请尝试:“openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'”命令来生成新的密码

解决方法:
[root@cobbler ~]# openssl passwd -1 -salt 'random-phrase-here' '123456'
$1$random-p$mzxQ/Sx848sXgvfwJCoZM0
[root@cobbler kickstarts]# cobbler setting edit --name=default_password_crypted --value='$1$random-p$mzxQ/Sx848sXgvfwJCoZM0'
10 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them

10:未找到防护工具,并且必须使用防护工具才能使用(可选)电源管理功能。 安装cman或fence-agents以使用它们

解决方法:
yum -y install fence-agents

再次查看cobbler配置文件

[root@cobbler ~]# cobbler check
The following are potential configuration items that you may want to fix:

1 : SELinux is enabled. Please review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:
    https://github.com/cobbler/cobbler/wiki/Selinux
2 : debmirror package is not installed, it will be required to manage debian deployments and repositories

Restart cobblerd and then run 'cobbler sync' to apply changes.

###忽略这两条即可,第一条是修改了selinux配置文件后未重启服务器的原因

配置DHCP

[root@cobbler ~]# cobbler setting edit --name=manage_dhcp --value=1

# 修改cobbler的dhcp模块,不要直接修改dhcp本身的配置文件,因为cobbler会覆盖
[root@cobbler ~]# vim /etc/cobbler/dhcp.template
...
subnet 10.0.190.0 netmask 255.255.255.0 { #这里改为分配的网段和掩码
     option routers             10.0.190.2; #如果有网关,这里改为网关地址
     option domain-name-servers 114.114.114.114; #如果有DNS,这里改为DNS地址
     option subnet-mask         255.255.255.0; #改为分配的IP的掩码
     range dynamic-bootp        10.0.190.100 10.0.190.254; #改为分配的IP的范围
...

###同步配置
[root@cobbler ~]# cobbler sync
task started: 2020-09-09_171458_sync
task started (id=Sync, time=Wed Sep  9 17:14:58 2020)
running pre-sync triggers
cleaning trees
removing: /var/lib/tftpboot/pxelinux.cfg/default
removing: /var/lib/tftpboot/grub/images
removing: /var/lib/tftpboot/grub/grub-x86.efi
removing: /var/lib/tftpboot/grub/grub-x86_64.efi
removing: /var/lib/tftpboot/grub/efidefault
removing: /var/lib/tftpboot/s390x/profile_list
copying bootloaders
copying: /var/lib/cobbler/loaders/pxelinux.0 -> /var/lib/tftpboot/pxelinux.0
copying: /var/lib/cobbler/loaders/menu.c32 -> /var/lib/tftpboot/menu.c32
copying: /var/lib/cobbler/loaders/yaboot -> /var/lib/tftpboot/yaboot
copying: /usr/share/syslinux/memdisk -> /var/lib/tftpboot/memdisk
copying: /var/lib/cobbler/loaders/grub-x86.efi -> /var/lib/tftpboot/grub/grub-x86.efi
copying: /var/lib/cobbler/loaders/grub-x86_64.efi -> /var/lib/tftpboot/grub/grub-x86_64.efi
copying distros to tftpboot
copying images
generating PXE configuration files
generating PXE menu structure
rendering DHCP files
generating /etc/dhcp/dhcpd.conf
rendering TFTPD files
generating /etc/xinetd.d/tftp
cleaning link caches
running post-sync triggers
running python triggers from /var/lib/cobbler/triggers/sync/post/*
running python trigger cobbler.modules.sync_post_restart_services
running: dhcpd -t -q
received on stdout:
received on stderr:
running: service dhcpd restart
received on stdout:
received on stderr: Redirecting to /bin/systemctl restart dhcpd.service

running shell triggers from /var/lib/cobbler/triggers/sync/post/*
running python triggers from /var/lib/cobbler/triggers/change/*
running python trigger cobbler.modules.manage_genders
running python trigger cobbler.modules.scm_track
running shell triggers from /var/lib/cobbler/triggers/change/*
*** TASK COMPLETE ***

cobbler命令帮助#

命令说明
cobbler check核对当前设置是否有问题
cobbler list列出所有的cobbler元素
cobbler report列出元素的详细信息
cobbler sync同步配置到数据目录,更改配置最好都执行一下
cobbler reposync同步yum仓库
cobbler distro查看导入的发行版系统信息
cobbler system查看添加的系统信息
cobbler profile查看配置信息

cobbler配置安装CentOS 7.x系统

[root@cobbler ~]# mkdir -p /cobbler/system/centos/7.x
上传CentOS7.x镜像或者挂载CentOS 7.x的镜像到光驱

###挂载镜像文件
[root@cobbler ~]# /cobbler/system/centos/CentOS-7-x86_64-Minimal-2003.iso /cobbler/system/centos/
7.x/                              CentOS-7-x86_64-Minimal-2003.iso
[root@cobbler ~]# echo "/cobbler/system/centos/CentOS-7-x86_64-Minimal-2003.iso /cobbler/system/centos/7.x iso9660 defaults,loop 0 0" >> /etc/fstab
[root@cobbler ~]# mount -a
mount: /dev/loop0 is write-protected, mounting read-only

###导入镜像
cobbler import --path=/cobbler/system/centos/7.x --name="CentOS7.8.2003" --arch=x86_64

###查看导入后镜像信息
[root@cobbler ~]# cobbler distro report --name=CentOS7.8.2003-x86_64
Name                           : CentOS7.8.2003-x86_64
Architecture                   : x86_64
TFTP Boot Files                : {}
Breed                          : redhat
Comment                        :
Fetchable Files                : {}
Initrd                         : /var/www/cobbler/ks_mirror/CentOS7.8.2003-x86_64/images/pxeboot/initrd.img
Kernel                         : /var/www/cobbler/ks_mirror/CentOS7.8.2003-x86_64/images/pxeboot/vmlinuz
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart Metadata             : {'tree': 'http://@@http_server@@/cblr/links/CentOS7.8.2003-x86_64'}
Management Classes             : []
OS Version                     : rhel7
Owners                         : ['admin']
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Template Files                 : {}

###查看profile信息
[root@cobbler ~]# cobbler distro report --name=CentOS7.8.2003-x86_64
Name                           : CentOS7.8.2003-x86_64
Architecture                   : x86_64
TFTP Boot Files                : {}
Breed                          : redhat
Comment                        :
Fetchable Files                : {}
Initrd                         : /var/www/cobbler/ks_mirror/CentOS7.8.2003-x86_64/images/pxeboot/initrd.img
Kernel                         : /var/www/cobbler/ks_mirror/CentOS7.8.2003-x86_64/images/pxeboot/vmlinuz
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart Metadata             : {'tree': 'http://@@http_server@@/cblr/links/CentOS7.8.2003-x86_64'}
Management Classes             : []
OS Version                     : rhel7
Owners                         : ['admin']
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Template Files                 : {}

[root@cobbler ~]# cobbler profile report --name=CentOS7.8.2003-x86_64
Name                           : CentOS7.8.2003-x86_64
TFTP Boot Files                : {}
Comment                        :
DHCP Tag                       : default
Distribution                   : CentOS7.8.2003-x86_64
Enable gPXE?                   : 0
Enable PXE Menu?               : 1
Fetchable Files                : {}
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart                      : /var/lib/cobbler/kickstarts/sample_end.ks
Kickstart Metadata             : {}
Management Classes             : []
Management Parameters          : <<inherit>>
Name Servers                   : []
Name Servers Search Path       : []
Owners                         : ['admin']
Parent Profile                 :
Internal proxy                 :
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Repos                          : []
Server Override                : <<inherit>>
Template Files                 : {}
Virt Auto Boot                 : 1
Virt Bridge                    : xenbr0
Virt CPUs                      : 1
Virt Disk Driver Type          : raw
Virt File Size(GB)             : 5
Virt Path                      :
Virt RAM (MB)                  : 512
Virt Type                      : kvm

复制一份ks文件给之前新增的系统使用

cd /var/lib/cobbler/kickstarts/
cp sample_end.ks centos7.8.2003.ks

###根据需求修改CentOS 7.8.2003的ks文件
[root@cobbler kickstarts]# cat centos7.8.2003.ks
# This kickstart file should only be used with EL > 5 and/or Fedora > 7.
# For older versions please use the sample.ks kickstart file.

#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 zh_CN
# 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
$SNIPPET('network_config')
# 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

%pre
$SNIPPET('log_ks_pre')
$SNIPPET('kickstart_start')
$SNIPPET('pre_install_network_config')
# Enable installation monitoring
$SNIPPET('pre_anamon')
%end

%packages
$SNIPPET('func_install_if_enabled')
@core
tree
nmap
wget
lftp
lrzsz
telnet
vim
git
gcc
gcc-c++
zip
unzip
net-tools
make
epel-release
htop
bzip2
%end

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

%post
$SNIPPET('log_ks_post')
# 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


# 动态编辑指定使用新的kickstart文件
[root@cobbler ~]# cobbler profile edit --name=CentOS7.8.2003-x86_64 --kickstart=/var/lib/cobbler/kickstarts/centos7.8.2003.ks

# 验证是否更改成功
[root@cobbler ~]# cobbler profile report --name=CentOS7.8.2003-x86_64 |grep Kickstart
[root@cobbler kickstarts]# cobbler profile report --name=CentOS7.8.2003-x86_64 |grep Kickstart
Kickstart                      : /var/lib/cobbler/kickstarts/centos7.8.2003.ks
Kickstart Metadata             : {}

cobbler更改默认启动项

[root@cobbler kickstarts]# cat /var/lib/tftpboot/pxelinux.cfg/default
DEFAULT menu
PROMPT 0
MENU TITLE Cobbler | http://cobbler.github.io/
TIMEOUT 200
TOTALTIMEOUT 6000
ONTIMEOUT local

LABEL local
        MENU LABEL (local)
        MENU DEFAULT
        LOCALBOOT -1

LABEL CentOS7.8.2003-x86_64
        kernel /images/CentOS7.8.2003-x86_64/vmlinuz
        MENU LABEL CentOS7.8.2003-x86_64
        append initrd=/images/CentOS7.8.2003-x86_64/initrd.img ksdevice=bootif lang=  kssendmac text  ks=http://10.0.190.250/cblr/svc/op/ks/profile/CentOS7.8.2003-x86_64
        ipappend 2



MENU end

###将第六行的ONTIMEOUT local的local修改成你所需要自动进入的系统,这里修改成CentOS7.8.2003-x86_64
###LABEL local和LABEL local之后的内容,到LABEL CentOS7.8.2003-x86_64之前的内容可以删除掉

######***********注意***********######
修改完之后不能执行cobbler sync同步,不然会自动恢复默认配置,这个是为了安全,当然全新的环境的情况下可以这么操作,网络需要独立出来,避免出现覆盖数据的情况,安装之前一定要再三确认

cobbler添加额外的yum源

[ -x /usr/bin/wget ]||yum install wget -y
cobbler repo add --name=CentOS7.8.2003-x86_64-epel --mirror=http://mirrors.aliyun.com/epel/7/x86_64/ --arch=x86_64 --breed=wget

执行完毕之后执行cobbler reposync命令同步额外的yum源

防火墙配置

firewall-cmd --zone=public --permanent --add-service=dhcp
firewall-cmd --zone=public --permanent --add-service=tftp
firewall-cmd --zone=public --permanent --add-service=https
firewall-cmd --reload

cobbler Web管理界面配置

web`界面有很多功能,包括上传镜像、编辑`kickstart`、等等很多在命令行操作的都可以在`web`界面直接操作。
在上面已经安装了`cobbler-web`软件,访问地址:[https://IP/cobbler_web](https://ip/cobbler_web) 即可。默认账号为`cobbler`,密码也为`cobbler
/etc/cobbler/users.conf     #Web服务授权配置文件
/etc/cobbler/users.digest   #用于web访问的用户名密码

[root@cobbler ~]# cat /etc/cobbler/users.digest 
cobbler:Cobbler:a2d6bae81669d707b72c0bd9806e01f3

# 设置密码,在Cobbler组添加cobbler用户,输入2遍密码确认
[root@cobbler ~]# htdigest /etc/cobbler/users.digest "Cobbler" cobbler
Changing password for user cobbler in realm Cobbler
New password: 123456
Re-type new password: 123456

# 同步配置并重启httpd、cobbler
[root@cobbler ~]# cobbler sync
[root@cobbler ~]# systemctl restart httpd
[root@cobbler ~]# systemctl restart cobblerd

所有的操作都可以在web页面中执行,基础环境搭好之后就可以直接在web页面中操作了

发表评论